lokeshsu
Board Regular
- Joined
- Mar 11, 2010
- Messages
- 178
Hi all,
I am trying to assign a variable globally in vba, as i want to use that variable in different places in the vba code to get the path. i tried to do it using the option explicit and it was showing an error, below is code what i used.
Need help in fixing this issue
Thanks in advance
Lokesh Sundar
I am trying to assign a variable globally in vba, as i want to use that variable in different places in the vba code to get the path. i tried to do it using the option explicit and it was showing an error, below is code what i used.
Code:
Option Explicit
Public dbpath As String
Public dumppath As String
dbpath = "c:\datadump.mdb"
Need help in fixing this issue
Thanks in advance
Lokesh Sundar