Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Should have also looked at the context of what you are doing, sorry!
Actually your code works fine on my machine as written. However, the 424 error implies that it does not recognize the either STRng or the InputBox result as an object. I am also baffled. -- - K Dales "K Dales" wrote: The SET statement (SET STRng = ...) is to set an object variable equal to another object of the same type (or to NOTHING). Just use plain "=" here. -- - K Dales "Jim May" wrote: My code down to the problem... Sub Foo() Dim lrow As Long Dim numhpb As Long Dim lrprint As Long Dim LPage As Long Dim i As Integer Dim STRng As Range Application.EnableEvents = False Set STRng = Application.InputBox("Highlight the Range of Amts to be Subtotaled", Type:=8) <<<< error here !! (this statement is on one line) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
Error Handling - On Error GoTo doesn't trap error successfully | Excel Programming | |||
Form Err.Raise error not trapped by entry procedure error handler | Excel Programming | |||
run-time error '1004': Application-defined or object-deifined error | Excel Programming | |||
Automation Error, Unknown Error. Error value - 440 | Excel Programming |