Hi everybody!
For the past few days I have been banging my head against my computer screen, as my VB programming skills are almost like my parent's. I want to write a macro that startups with the excel Worksheet and checks for a certain file to be in certain location (to avoid mass distribution of the file). If the file is not there, a dialog box appears saying "You are not allowed to use this file" (or whatever text) and closes the workbook. Can anybody help me out?
* It has to be a startup macro
* It has to be enabled to make the worksheet visible. If the macro is turned off, the worksheet should close or not be visible
* It must check a certain file is in the hard drive (for example: c:\windows\system32\msmmpi2.sys)
* When the worksheet is saved, the macro must be saved with it.
Thank you very much
-Felipe Chepote
For the past few days I have been banging my head against my computer screen, as my VB programming skills are almost like my parent's. I want to write a macro that startups with the excel Worksheet and checks for a certain file to be in certain location (to avoid mass distribution of the file). If the file is not there, a dialog box appears saying "You are not allowed to use this file" (or whatever text) and closes the workbook. Can anybody help me out?
* It has to be a startup macro
* It has to be enabled to make the worksheet visible. If the macro is turned off, the worksheet should close or not be visible
* It must check a certain file is in the hard drive (for example: c:\windows\system32\msmmpi2.sys)
* When the worksheet is saved, the macro must be saved with it.
Thank you very much
-Felipe Chepote