I’m having a problem with the InputBox method in VBA for returning a reference. I didn’t find it in the MSKB though. Start by putting this snippet of
code in a general module of a workbook with more than one sheet:
Sub test() Dim rngTargetCell As Range Set rngTargetCell = Application.InputBox("Select a target cell on another sheet", Type:=8) End Sub
Start the macro, go to a different sheet and select a cell on that sheet, then either click OK, or press ENTER. I find that if I press ENTER, everything thing runs fine, but if I click OK, most of the time it errors out with error 424 (Object Required). Is this a known problem? Does SR2 perhaps fix it? Your input is appreciated.
Ken