Results 1 to 9 of 9
  1. #1
    Star Lounger
    Join Date
    Mar 2001
    Location
    New York, USA
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Phantom Auto_Open (Excel 2000 SP-1)

    I was doing a search from Explorer for workbooks that contained Auto_Open code in them. I found a few files that came up that did NOT have any Auto_Open code in them. I tried Code Cleaner but that did not get rid of the phantom Auto_open.

    I finally just copied the code to a new workbook, deleted the old one and then they did not show up on the search.

    Must be some kind of throw-back to an earlier version of Excel (maybe 4.0?) that must have embedded Auto_Open somewhere hidden?

    Anyone else seen this?

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Phantom Auto_Open (Excel 2000 SP-1)

    Did you look for thisWorkbook_Open in the thisWorkbook object?

    Steve

  3. #3
    Star Lounger
    Join Date
    Mar 2001
    Location
    New York, USA
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Phantom Auto_Open (Excel 2000 SP-1)

    No. I was just using the search tool search for "Containing text" and entering "Auto_Open". It found files that did have that text as well as the ones I described where there was no "Auto_Open" anywhere.

  4. #4
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Phantom Auto_Open (Excel 2000 SP-1)

    No, you did not look or No there was none?
    thisWorkbook_open event IS a macro that automatically runs when the workbook opens.

    There could also be macros for various worksheets when they activate or a host of other events.

    Steve

  5. #5
    Star Lounger
    Join Date
    Mar 2001
    Location
    New York, USA
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Phantom Auto_Open (Excel 2000 SP-1)

    It dosen't matter if there was a Workbook_Open macro or not. I wasn't searching for that text, just "Auto_Open" text.

  6. #6
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Phantom Auto_Open (Excel 2000 SP-1)

    I guess I am confused.

    I understood your question to be that you were looking for reasons for a file to have "auto-open code" but NO code that says specifically "Auto_Open" ("phantom auto-opens"). Workbook events would do this.

    Steve

  7. #7
    Star Lounger
    Join Date
    Mar 2001
    Location
    New York, USA
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Phantom Auto_Open (Excel 2000 SP-1)

    I guess I'm not clearly stating what I did. Do the following:

    Explore > View > Explorer Bar > Search > Contains text: (enter Auto_Open), pick a directory with Excel files in it. Do the search.

    It returns to me some files that do not contain "Auto_Open"

  8. #8
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Phantom Auto_Open (Excel 2000 SP-1)

    I'm think that this may be what is happening. Excel files may contain areas that are not initilized. For example, if you delete a macro from a workbook, the space in the file where the macro was stored may still contain some of the text from the macro. When you use Explorer to search for text in the file, it just searches through the physical file without using the file structure of the application. I think that Explorer may be finding the text in an area of the file that Excel does not use.
    Legare Coleman

  9. #9
    Star Lounger
    Join Date
    Mar 2001
    Location
    New York, USA
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Phantom Auto_Open (Excel 2000 SP-1)

    Yup! That's what I'm thinking also. Sure adds to the confusion when you try to find something.

Posting Permissions

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