LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Global Variable

This solved problem.

Regards to all for help.
--
Regards and Thanks for any assistance.

Francis Brown.


"Chip Pearson" wrote:

I got another problem with declaring the variable name in the
workbook
module.


Unless you have good reason to do so, don't declare the variables
in the ThisWorkbook module. Declare all your global variables in
a standard code module.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Francis Brown" wrote in
message
...
Thanks For answer.

That problem is cleared.

I got another problem with declaring the variable name in the
workbook
module. When the program to set the variables was called it
through up a
problem about setting a variable form which the module was
derived. I changed
the variable name to namex and this resolved. Although I could
not find the
other declaration the error was talking about.

However I have the following problem

My program to set the variables works but when I run a small
test program
imedietly after the first with MSGBOX commands for all the
variables they
come up empty.

any ideas.
--
Regards and Thanks for any assistance.

Francis Brown.


"Leith Ross" wrote:


Hello Francis,

Remove the Set statements from you variables name, team,
TeamLeader,
and CommandN.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile:
http://www.excelforum.com/member.php...o&userid=18465
View this thread:
http://www.excelforum.com/showthread...hreadid=488468







 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Global variable dhstein Excel Discussion (Misc queries) 2 October 30th 09 01:03 PM
Global Variable dhstein Excel Discussion (Misc queries) 4 July 26th 09 05:10 PM
Global Variable Patrick Simonds Excel Programming 8 October 6th 05 12:39 AM
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Daniel Excel Worksheet Functions 1 July 9th 05 03:05 AM
Global variable Don[_11_] Excel Programming 1 October 28th 03 04:15 AM


All times are GMT +1. The time now is 04:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"