Input Box Allow To Input The Column Number

Dec 5, 2007

I want to create an input box that will allow you to input the column number it should start in... so instead of it being fixed at A, you can choose column B, C, D all the way to the end if you like.

Sub SplitSheetsNoDelete1()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Dim Lmainsheet As String
Dim Lrow As Integer
Dim lcontinue As Boolean

Dim LColamaster As String
Dim lcolatest As String

'Retrieve name of sheet that contains the data
Lmainsheet = ActiveSheet.Name

'Initialize variables
lcontinue = True
Lrow = 2.....................................

View 9 Replies


ADVERTISEMENT

Input In Multiple Cells To Generate Input Into Single Cell?

Feb 22, 2014

I have a spreadsheet with 5 columns. A1 to A5

Entries are made into columns A2 to A5 but only ever one entry across all cells

If an entry is made into A2 to A5 the I need a "P" to be placed into A1

View 4 Replies View Related

Input Box To Create And Input Info Into A Formula Which Then Populates A Cell With A Value

Jul 24, 2014

I am trying to create a macro which gives me an input box. I need to enter 2 numbers into the input box. It would be as follows:

Input Box Msg 1 - "What is your labor cost?" (NUM1)
Input Box Msg 2 - "What is your productivity rate?" (NUM2)

Then I need the macro to take this info and enter it into a formula which changes according to the row which you are on. (I need the macro to work based on which ever cell I currently have selected). The formula would be this if I currently had a cell on row 10 selected:

=(NUM1*(NUM2*$H10))/$H10

So, if I currently had cell L10 selected, and I ran the macro and put 100 in for "NUM1" and 10 for "NUM2" and my sheet had 20 in cell H10, then the macro would enter the number 1,000 into cell L10. If I had L500 selected, then the macro would enter the final number into cell L500 based on what value H500 contained.

View 9 Replies View Related

Transferring Of Input From Input Cell To Output Cells?

Jun 8, 2014

I would like to know if it is possible to transfer values of cells this way?

I've attached the excel file for easier reference.

View 3 Replies View Related

UserForm Input (a Button That Opens An Input Box Or Dialog Box)

Jul 4, 2006

I have to design an input user form (a button that opens an input box or dialog box), which asks user to "Enter number of "columns"".

User enters a number i.e. 2 or 3 etc

It then asks user for the headings of these coulmns and places first column heading in A1 and second column heading in B1, third in C1 and so on ...

View 9 Replies View Related

Input Text In Given Cell After Any Input In An Area

Feb 28, 2007

I am just starting to get my feet a little damp with VBA and I am trying to make a macro that will act whenever any text is entered in any cell within a 3x3 square. Whenever any text is entered in any of those cells I would like it to enter a text ( "X" ) in a cell which is specified by a cell in the spreadsheet (this cell will output which cell the macro should write the text in in this format "A:1" or "C:3"). How can I make the program act only in reaction to the user entering thier text, and also, how can I get the macro to read A:1 and enter the text into that specific cell? Any help would be so awesome, the book I have is really difficult to navigate.

View 9 Replies View Related

How To Change An Input Box Based On Input In Another

Dec 9, 2008

What I am trying to accomplish....

If the input changes in D5, K11 will reset to $0.00..

Example. If cell K11 is set to $300.00, and the corresponding input in D5 is '123', when I change the contents of D5 it sets K11 back to '0.00'.

View 9 Replies View Related

VBA To Automate Text Input Into Input Box

Feb 6, 2014

I am in need of VBA code so that I can fill out an input form generated by someone elses macro input box. (I am the user, not the one developing the input box).

I am working to streamline a whole cluster of macros and this input box is currently my bottleneck. When the input box pops up, instead of me manually typing, I want to autofill the space with "104" and then click 'ok' uisng VBA.

I can not modify the actual VBA that created the input box (ie make 104 the default) because other users need the box to be blank.

find out how a developer would change the original vba code, not how a user can interact with an input box by using vba.

View 3 Replies View Related

How To Assign Number To Course Name In Input Box

Jun 26, 2014

In column 'o' I have inserted a number for course name in column 'p'. I want to assign a course name to that particular number as follows:

Column 'o' Number ... Column 'p' Course name
1: A. B. C.
2: J. K. L.
3: P. Q. R.
4: X. Y. Z.

And so on as per course names.

If I enter number 1 in inputbox then I want to enter the course name in column 'b4' respectively.

View 2 Replies View Related

Input Number In Range?

Feb 7, 2014

With the inputbox I want to insert a numeric value to define a cell range, for example "C15:F15"

This is the code I'm using:

x = InputBox("Insert Row")
Range("C(x):F(x)").Select

Where (x) represents the Inputbox data (the number "15") I want to insert, But it doesn't runs

View 1 Replies View Related

Input A Data/number Through Vba Userform

Mar 16, 2009

how to input a data/number into excel through vba userform and get another data/number from excel back to the userform??

View 8 Replies View Related

Excel 2007 :: How To Input Number And Get Name

Dec 9, 2011

I am trying to auto fill one cell with one of several names using different values from another cell. Ex: when one of six numbers (100, 101, 102, 103, 104, 105) in input in A2, I want B2 to display a name (Joe, Tom, Steve, Fred, Tyler, Todd) that corresponds to that number. Cells in columns A and B will be formatted as text. Using Excel 2007.

View 9 Replies View Related

Limiting Number Of Character In Input Box To 31

Jan 9, 2014

I need to limit the number of Characters that can be inputted to the popup InputBox to just 31. How do I set MaxLength? Code I am using is listed below.

Code:

Sub NewRecipeSheet()
Dim ws1 As Worksheet
Set ws1 = ThisWorkbook.Worksheets("1. Recipe Master Sheet")
ws1.Copy ThisWorkbook.Sheets(Sheets.Count)
Application.Goto Reference:=Sheets("1. Recipe Master Sheet").Range("A1")
Range("A1").Value = InputBox("Menu Item Name?")
End Sub

View 5 Replies View Related

Input Any Text To Return A Number

Jun 7, 2014

Here is my formula but I want to change the "wd" to just text (no matter what text is inputted"=IF(C5="wd",MAX($C$4:$C$23),C5)+Q5

View 2 Replies View Related

Input Box Where The User Can Only Enter A Whole Number Between 1 And 99

Jun 30, 2009

I am trying to create an input box where the user can only enter a whole number between 1 and 99. i can create the input box but am having trouble specifiying it can only be a whole number between 1 and 99.

View 9 Replies View Related

VBA - Select Row Number From Input Box And Delete Specified Columns From That Row

Jun 11, 2013

I have an input box which asks the user to select a row that they wish to delete.

What I need to do is take the row number that has been selected and delete cells B:K and move the below cells up.

View 1 Replies View Related

Create A Cell That Allows The User To Input A Number

Jul 30, 2009

I am working on a spreadsheet and would like to create a cell that allows the user to input a number (1 to 5) which will then equate to a percentage(%). I would then like this to deduct that percentage from a total number...

To try and explain this.. Should the user input 1 into the cell, this would then equate to 3% - this would then deduct from a total that percentage. Input 2 = 5% etc..

View 12 Replies View Related

Show Row Number Containing Data Input By The User

Jul 18, 2007

i have a sheet that manipulates a variable amount of rows containing data input by the user. if a cell has an unexpected entry causing an error the program just halts with the default error message. the user then has to find the error which can take time. is there any way a message box can appear showning what row the error was found on ?

View 5 Replies View Related

List Of Weeks From Start Date And Input Number

Apr 16, 2014

I am trying to create a simple set up where the operator can enter a starting date and the number of weeks they want this event to occur. This then produces a column of dates from the starting date to the end date for the number of week entered.

E.g. - start date = 16/04/2014 - No. of Weeks = 3

The output would be as below

16/04/2014
23/04/2014
30/04/2014

View 4 Replies View Related

Create Spreadsheet Where First Page Allows To Input Number Of Teams?

Apr 24, 2014

What i'm looking to do is create a spreadsheet where the first page allows me to input the number of teams in the group.The teams cannot play others in the group except the ones they are paired with. eg. "Enter number of team pairs in set" (in this case 4)

Team 1a vs Team 1b
Team 2a vs Team 2b
Team 3a vs Team 3b
Team 4a vs Team 4b

After number of teams in set is established click a start button on the first tab of the spreadsheet.

this auto generates a new tab with all the possible win/loss combinations of 4 team pairs.

New Picture.jpg

if the number of teams on Tab 1 is changed (say to 6) and the start button is clicked, another new tab is generated with all possible win loss combinations of a 6 team set.

remember 1a vs 1b can only be win or lose and the win lose combinations are for the set of 4 matches ( or more matches if specified on the first tab and clicked).

if you put 7 in for the number of team pairs then it would be win loss combos for 7 pairs of teams.

View 7 Replies View Related

Input Allocation Percentage Dependent On Number Of Variables

May 15, 2014

On the attached sheet in column X, I am trying to input the Allocation percentage dependent on a number of variables:

Type (Bar, Blank, Coil, Sheet, Special)
Sub Fam Code (2A02, BC02-05, BC99, BZ99)
Sup Category (Arcelor, Independent, Tata/ Corus)

The allocation percentage is based on the below; anything outside of this should result in "Other".

Sheet (BC02/03/04) A=40%, T=40% & I=20%
Coil (BC02 & BC03) A=40%, T=40% & I=20%
Coil (BC04) A=30%, T=50% & I=20%

Example 1:
Type - Sheet & Coil
Sup Category - Independent
Result 20%

Example 2:
Type - Coil
Sup Category - Tata/ Corus
Sub Fam Code - BC04
Result 50%

Example 3:
Type - Coil
Sup Category - Arcelor
Sub Fam Code - BC04
Result 30%

View 1 Replies View Related

Insert Number Of Rows Based On User Input

Apr 23, 2014

I have an excel sheet that I've automated for my shop ... Basically it copies a set of rows from one sheet, asks for which cell you want to start the paste at, then pastes it... Here's what I have so far:

[Code] .....

So I tried to use a variation of strReturn to indicate number of rows wanted but that didn't work ... Basically I'm going to create the "data" to include 50 rows, but have it selectable for the user to say they only want 5, 7 or 29 rows ...

View 2 Replies View Related

Custom Function With Variable Number Of Input Parameters?

May 10, 2013

how to create a custom function with an unknown/changing number of input parameters?

Specifically, I need to create a function that will calculate the average of 1,2 or more ranges. I can't use the built-in average function as I then need to use the average in my function.

what I have so far is:

function points(current as range, previous as range)
if previous > current then final=1
if previous < current then final=0
if previous = current then final=2
points=final
end function

This works okay if I only only have 1 range of values. but in my worksheet I need to be able to enter =points(a1,c1:f1,g1) and have the function calculate the average of c1:f1,g1 and compare it to a1.

View 6 Replies View Related

Basis On 1st Column Automatically Select Input For 2nd Column From Another Worksheet

Mar 18, 2014

I have 02 separate excel workbooks
01 = source file
02 = data list

The workbook "source file" contains all the data
The workbook "data list" contains data for work with Drop-down list. And i can easily select my required description by just dropping down the list.

In case, i have new description i add it in the source file and it is updated in the working "data list" sheet.

This applies to Field device column also. But i want to improve the selection criteria by creating such script or formula which could check the input of the description and automatically selects the field device and its relevant signal (output type).

Screen shot is attached : Automatic Selection.jpg‎

View 1 Replies View Related

Macro - If Cell In Column Is Blank Then Input Text Into Same Row In Another Column

Sep 19, 2008

I am looking for a Macro that will search a column for blank cells, and when one is found will add text to the same row in another column. For example: The below is a spreadsheet. I am trying to find something that will search through column "C" in this case and add text (of my choice) to Column "A" if the cell is Blank. So Since cell C1 is Blank then Type "ERROR" is cell A1.

A B C D E
1 X X X X
2 X X X X
3 X X X X X
4 X X X X
5 X X X X

View 9 Replies View Related

Search Row For Some Value And Input Value In Same Row But In Different Column?

Jan 27, 2012

I would like to know how can i search the row for some value and than to input value in the same row but in different column?

For example:

In search box I enter bill number 114 and than field below ejected date(15.5.2011) than in the next field user enter price(1500). Now if i have more than one bill number with the same name how can i navigate thru list to chose the right one? Lets say that date is indicators for the right bill.

HTML Code:
A B C
1Date Bill Number Price
21.2.2011 112 1000
38.3.2011 113 5000
415.5.2011 114 1500
510.1.2012 115 500

View 5 Replies View Related

Excel 2010 :: Macro Design For Serial Number Input

Dec 8, 2011

Excel 2010 O/S XP Macro for serial number input all serial numbers have JTC0. Any VBA code to place in macro to have a cursor appear after the four characters in the macro below?

Example: JTC0| < cursor ready for input

Sub Macro2()
'
' Macro2 Macro
'
' Keyboard Shortcut: Ctrl+s
'
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "JTC0"
End Sub

View 4 Replies View Related

Forcing A User To Input A Set Number And Type Of Character In A Userform

Apr 10, 2007

I want to force my user to input a date in a userform. I have a normal Textbox and assumed i'd be able to set the properties to mean that imput had to be an integer and the format had to be "00/00/00" but I can't see how to do this.

View 9 Replies View Related

Macro To Input Column Fields Into Text Within Another Column

Jun 8, 2009

This macro is extreemly basic but i have no skills in excel with macros. Basically i have 'Column A' with stats that i need input into 'Column B', however i need then to be input inside a field that is already there.....

View 4 Replies View Related

Input Number Between High And Low Number?

Apr 18, 2012

In the frmula below, Is there a way for the operator to input a number between the range that is shown size of inducer wheel. Example: 2.277" could be inputed as 2.267 to 2.287" anything else would be rejected.

Air OutletGeometry# of Bolt HolesSize of Wheel Inducer
"0.010"
Noise SuppressorBackplate flange styleA/R ratioCastingPart #
StraightFixed62.277"YesFlat0.58AStraightFixed62.277"YesFlat0.58AVA-11-763 - 449633-0039
VA-11-763 - 449633-0039==IFERROR(VLOOKUP(J5,Cat,10,0),"******")

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved