Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the below VBA in Excel. What I would to do is inhance it to be
prompted to input a number in the line Set rStoreNo = Range("g7:g9753") only where the 9753 is. The columns will always be the same as will g7. Also I would like the same for rStoreNo.Value = "0002" where it says "0002". Sub InputStoreNum() Dim rStoreNo As Excel.Range Set rStoreNo = Range("g7:g9753") rStoreNo.Value = "0002" Call DeleteRows End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Something like the following but look up InputBox in help for other parameters that can be used with it. Sub InputStoreNum() Dim rStoreNo As Excel.Range Dim strInput As String strInput = InputBox("Enter the row number") Set rStoreNo = Range("g7:g" & strInput) rStoreNo.Value = InputBox("Enter the value to insert in range") Call DeleteRows End Sub -- Regards, OssieMac "Beep Beep" wrote: I have the below VBA in Excel. What I would to do is inhance it to be prompted to input a number in the line Set rStoreNo = Range("g7:g9753") only where the 9753 is. The columns will always be the same as will g7. Also I would like the same for rStoreNo.Value = "0002" where it says "0002". Sub InputStoreNum() Dim rStoreNo As Excel.Range Set rStoreNo = Range("g7:g9753") rStoreNo.Value = "0002" Call DeleteRows End Sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub beep()
x = Application.InputBox(prompt:="Number please", Type:=1) Set rStoreNo = Range("g7:g" & x) End Sub -- Gary''s Student - gsnu200812 "Beep Beep" wrote: I have the below VBA in Excel. What I would to do is inhance it to be prompted to input a number in the line Set rStoreNo = Range("g7:g9753") only where the 9753 is. The columns will always be the same as will g7. Also I would like the same for rStoreNo.Value = "0002" where it says "0002". Sub InputStoreNum() Dim rStoreNo As Excel.Range Set rStoreNo = Range("g7:g9753") rStoreNo.Value = "0002" Call DeleteRows End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to input pictures automatically based on cell input? | Excel Worksheet Functions | |||
input in number form is being multiplied by 1000 when i input. | Excel Discussion (Misc queries) | |||
How do I add input data in the input ranges in drop down boxes. | Excel Discussion (Misc queries) | |||
=SUMIF(Input!H2:H718,AZ19,Input!E2:E685)AND(IF | Excel Worksheet Functions | |||
CODE to select range based on User Input or Value of Input Field | Excel Programming |