![]() |
#4
|
||||
|
||||
![]()
If you declare a Public variable in a class module (for example a worksheet or ThisWorkbook module) then the variable may only be accessed as a member of that class. Therefore you must refer to it using syntax such as Sheet1.Variablename or ThisWorkbook.Variablename. If the variable is declared in a normal module, you may simply refer to it using its name from any other module in the workbook.
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run Time Error '91': Object variable or With block variable not set using Catalogue Mailmerge | Berryblue | Mail Merge | 1 | 11-13-2014 05:36 PM |
![]() |
Vincent | Project | 3 | 09-03-2014 05:37 PM |
![]() |
JUST ME | Word VBA | 4 | 03-25-2014 06:56 AM |
![]() |
Greg S. | Excel Programming | 2 | 07-30-2013 01:38 PM |
![]() |
tinfanide | Excel Programming | 2 | 06-10-2012 10:17 AM |