

Specialist
2016-01-25
05:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Global variable in VBScript/VBA
Hi,
I'm trying to declare a global variable outside of any functions/subs but getting an "Expected end of statement" error. Any ideas?
- Tags:
- vba macro
10,415 Views
1 Solution
Accepted Solutions


Master II
2016-01-25
08:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try just: Public vsubject
8,280 Views
2 Replies


Master II
2016-01-25
08:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try just: Public vsubject
8,281 Views


MVP
2016-01-25
08:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A variable-declaration in VBScript is without as DataType only:
Public vsubject
- Marcus
