Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This is easy but somehow I cant get it
I have a macro that I want to execute only if the workbook has a particualr file name so something like If workbooks.name = " sample.xls" then ' do something else ' do nothing end if end sub however, what I found was that no matter what the file name, the macro still goes ahead and get executed |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel file lost | Excel Discussion (Misc queries) | |||
Copy File Automatically on Opening It | Excel Discussion (Misc queries) | |||
Pasword protected Excel file encrypted, how do I read this file? | Excel Discussion (Misc queries) | |||
Links picking up values from an older version of linked file | Links and Linking in Excel | |||
Opening a file with code without a set file name | Excel Discussion (Misc queries) |