Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi everyone,
I was wondering if there is a quick or easy way of checking whether a file has any code or macros attached to it? thanks for your help in advance, regards, Youssef |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Youssef,
The easiest way would be to set your security level to Medium Tools/Macro/Security If there's code, you'll be prompted to enable it. If not, the workbook will just open up without the prompt. That's not to say that there couldn't be an empty module in the workbook with no code as that would give the prompt too. John Youssef Mourra wrote: Hi everyone, I was wondering if there is a quick or easy way of checking whether a file has any code or macros attached to it? thanks for your help in advance, regards, Youssef |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Youssef,
Found this little tidbit from Earl Takasaki posted back on 3/28/2002. http://makeashorterlink.com/?H19362C75 It's a little involved but he gives a good explanation of how to code it and make it work. John Youssef Mourra wrote: Hi John, thanks for that. I should have clarified that I wanted to check for existence of code/macros by using a macro to do it. I've about 1000 excel files that we want to migrate but I want my code to not only open and then close each file to do other things, I also want to know if it contains any code/macros. Is that possible? thanks, Youssef Mourra -----Original Message----- Youssef, The easiest way would be to set your security level to Medium Tools/Macro/Security If there's code, you'll be prompted to enable it. If not, the workbook will just open up without the prompt. That's not to say that there couldn't be an empty module in the workbook with no code as that would give the prompt too. John Youssef Mourra wrote: Hi everyone, I was wondering if there is a quick or easy way of checking whether a file has any code or macros attached to it? thanks for your help in advance, regards, Youssef . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John, thanks for this. I'm going to work it out with that
information. regards, -----Original Message----- Youssef, Found this little tidbit from Earl Takasaki posted back on 3/28/2002. http://makeashorterlink.com/?H19362C75 It's a little involved but he gives a good explanation of how to code it and make it work. John Youssef Mourra wrote: Hi John, thanks for that. I should have clarified that I wanted to check for existence of code/macros by using a macro to do it. I've about 1000 excel files that we want to migrate but I want my code to not only open and then close each file to do other things, I also want to know if it contains any code/macros. Is that possible? thanks, Youssef Mourra -----Original Message----- Youssef, The easiest way would be to set your security level to Medium Tools/Macro/Security If there's code, you'll be prompted to enable it. If not, the workbook will just open up without the prompt. That's not to say that there couldn't be an empty module in the workbook with no code as that would give the prompt too. John Youssef Mourra wrote: Hi everyone, I was wondering if there is a quick or easy way of checking whether a file has any code or macros attached to it? thanks for your help in advance, regards, Youssef . . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checking for the existence of a worksheet | Excel Discussion (Misc queries) | |||
evnet code, checking for entry | Excel Worksheet Functions | |||
Checking and Unchecking CheckBoxes in code | Excel Discussion (Misc queries) | |||
Checking for the existence of a characted in a string | Excel Discussion (Misc queries) | |||
Color Code Date Checking | Excel Worksheet Functions |