+ Reply to Thread
Results 1 to 3 of 3

Run Auto_open only if file it's in is not a particular name.

  1. #1
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253

    Run Auto_open only if file it's in is not a particular name.

    Trying to figure out VBA that runs Auto_open only if the file it's in is not a particular name.

    In other words, I am trying to prevent an Auto_Open call procedure from executing when the sheet is opened under another name it has previously been Saved As. For example, Study.xls has been saved as StudyPurged.xls. So when I open StudyPurged.xls the call procedure does not execute as follows:

    Please Login or Register  to view this content.
    I just can't figure out the If statement. Any help would be greatly appreciated. mikeburg
    Last edited by VBA Noob; 01-18-2008 at 04:03 AM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Please Login or Register  to view this content.
    Please wrap your code.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253
    Works great. Thanks a million for the help.

    Sorry about the wrap. I am not very good at this. I promise to do it from now on.

    This web site is my only salvation sometimes!

    Thank you. mikeburg

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1