Hi,
I am a VBA newbie and am learning the hard way. Can anyone please help?
I am trying to run a programme with all the code in 1 workbook (CodeWbk.xls) and all the data in another (DataWbk.xls)
I need to be able to get the user to input the name of the data file he is using and then both save this and then use it as a variable so as to know which xls has the data. My codewbk.xls then should, using vba, open the correct file.
I am struggling to open a workbook with a variable. The workbook open command just doesn't seem to work for me no matter what I do. (probably just doing wrong things)
Also where and how would I set a global variable so that this workbook name (Datawbk.xls) is available to all modules.
Regards,
Alan
Bookmarks