LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Check File Name With Conditional Statement

Never mind I figured it out.

" wrote:

I have a file that certain users will open, rename, and use for testing
purposes. It contains a macro that I only want to run if the file is the
original version. I tried adding an if statment to the macro checking the
filename and only running the macro if the filename is the original. For the
original file the code works fine but if a file with a different name tries
to run the macro Excel shuts down everytime. I tried using the
ActiveWorkbook.Name and ActiveWorkbbok.FullName properties but both return
the same results. Any ideas?

Thanks

Adam Bush

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Statement to Check for Blanks Daren Excel Worksheet Functions 5 October 15th 08 11:08 PM
If statement error check lghovden06 Excel Worksheet Functions 1 July 9th 08 11:05 PM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
How do I use a "check(ed) box" as a criteria in an "=if" statement Bill Bromback Excel Worksheet Functions 1 August 19th 05 05:28 PM
How do I check formatting in an if-then statement bfmartiniv Excel Worksheet Functions 1 December 14th 04 12:42 AM


All times are GMT +1. The time now is 02:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"