Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Then you need to define the variable...
Dim res As String or Dim res As Variant You usually get that error when you have "Option Explicit" at the top of your module. It's a GOOD thing. Keeps you from tearing your hair out over thing like: Dim result As String 'lots of code here res = Inputbox("...") 'lots more code If result = "foo" Then '... where result never gets assigned... In article , "Corey" wrote: The Compile error says: Variable Not Defined? I removed the Spaces but they return and the same error occurs. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBAProject name compile error, not defined at compile time | Excel Programming | |||
Compile Error in Excel 2004 when Inputbox contains "VBCRLF" | Excel Discussion (Misc queries) | |||
error message: compile error, argument not optional | Excel Programming | |||
How do I get rid of "Compile error in hidden module" error message | Excel Discussion (Misc queries) |