Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I wrote a program which gets the cell location to run from through an
input box. I tested it and it worked fine last week. I made some changes elsewhere, but not to the input box code. Application.ScreenUpdating = False Set wsCtyLstTop = Workbooks("Mark Top 10.xls").Worksheets("CtyLst") Set wsExtFrom = ActiveSheet Set wbExtrFrom = ActiveWorkbook lBOS10Row = 14 lBOS21Row = 25 If wbExtrFrom.Name = "Mark Top 10.xls" Then MsgBox "You have selected the workbook that contains the macro." & _ Chr(13) & "Please click Ok and select the correct workbook and " & _ Chr(13) & "worksheet and restart the macro.", vbOKOnly Exit Sub End If ' User inputs cty list location lExtrFromCol = 0 On Error Resume Next Set rExtrFromStrt = Application.InputBox _ (prompt:="Please click on the cell where the " & _ "first county is listed.", _ Type:=8, Default:="$a$2") All variables are declared. Anyone have any ideas why the input box won't let me select a cell anymore? Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I haven't tested it, but I would think having Application.ScreenUpdating =
False would be a non-starter. Turn it back on just before you show your inputbox. -- Regards, Tom Ogilvy "davegb" wrote: I wrote a program which gets the cell location to run from through an input box. I tested it and it worked fine last week. I made some changes elsewhere, but not to the input box code. Application.ScreenUpdating = False Set wsCtyLstTop = Workbooks("Mark Top 10.xls").Worksheets("CtyLst") Set wsExtFrom = ActiveSheet Set wbExtrFrom = ActiveWorkbook lBOS10Row = 14 lBOS21Row = 25 If wbExtrFrom.Name = "Mark Top 10.xls" Then MsgBox "You have selected the workbook that contains the macro." & _ Chr(13) & "Please click Ok and select the correct workbook and " & _ Chr(13) & "worksheet and restart the macro.", vbOKOnly Exit Sub End If ' User inputs cty list location lExtrFromCol = 0 On Error Resume Next Set rExtrFromStrt = Application.InputBox _ (prompt:="Please click on the cell where the " & _ "first county is listed.", _ Type:=8, Default:="$a$2") All variables are declared. Anyone have any ideas why the input box won't let me select a cell anymore? Thanks. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Tom Ogilvy wrote: I haven't tested it, but I would think having Application.ScreenUpdating = False would be a non-starter. Turn it back on just before you show your inputbox. You got it! Thanks. -- Regards, Tom Ogilvy "davegb" wrote: I wrote a program which gets the cell location to run from through an input box. I tested it and it worked fine last week. I made some changes elsewhere, but not to the input box code. Application.ScreenUpdating = False Set wsCtyLstTop = Workbooks("Mark Top 10.xls").Worksheets("CtyLst") Set wsExtFrom = ActiveSheet Set wbExtrFrom = ActiveWorkbook lBOS10Row = 14 lBOS21Row = 25 If wbExtrFrom.Name = "Mark Top 10.xls" Then MsgBox "You have selected the workbook that contains the macro." & _ Chr(13) & "Please click Ok and select the correct workbook and " & _ Chr(13) & "worksheet and restart the macro.", vbOKOnly Exit Sub End If ' User inputs cty list location lExtrFromCol = 0 On Error Resume Next Set rExtrFromStrt = Application.InputBox _ (prompt:="Please click on the cell where the " & _ "first county is listed.", _ Type:=8, Default:="$a$2") All variables are declared. Anyone have any ideas why the input box won't let me select a cell anymore? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dropdown List That Accepts Other User Input | Excel Discussion (Misc queries) | |||
Have user input converted to uppercase in same cell as input? | New Users to Excel | |||
How do I add input data in the input ranges in drop down boxes. | Excel Discussion (Misc queries) | |||
input of text longer than 5 rows | Excel Programming | |||
CODE to select range based on User Input or Value of Input Field | Excel Programming |