Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there
The following is most bizarre! In my VBA project I've declared several public variables as normal (ahead of all procedures) ... Public ctrNegInv, ctrPosInv As Integer, etc. I set the values in one procedure and then execute a second procedure but, when the variable is encountered in the second procedure, it appears to be empty and I get a "Subscript out of range" error. For instance, if I hover the cursor over the variable in the variable declarations section, it says ctrNegInv = Empty, whereas if I hover the cursor in the procedure where I set it's value it says ctrNegInv=0, and further if I hover the cursover in the subsidiary or later procedures I get ctrNegInv = Empty. Can I be going mad? Best regards Loane |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Declaring variables in Module vs. Public | Excel Discussion (Misc queries) | |||
Declaring Variables Public | Excel Programming | |||
Declaring Variables Public | Excel Programming | |||
declaring a public array | Excel Programming | |||
Declaring Public Procedure | Excel Programming |