Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Jan 2004
    Location
    Melbourne, Fl USA
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macro alert (Excel 2003 sp2)

    I have a workbook that I get prompted to enable or disable macros on opening. There are no macros in the book and there isn't a blank module. Any idea why I get this?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Macro alert (Excel 2003 sp2)

    Have you checked the ThisWorkbook module and the modules for the individual worksheets?

  3. #3
    2 Star Lounger
    Join Date
    Jan 2004
    Location
    Melbourne, Fl USA
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Macro alert (Excel 2003 sp2)

    yup - no modules at all in the workbook. Checked general declarations and individual worksheets.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Macro alert (Excel 2003 sp2)

    Try the following:
    - Activate the Visual Basic Editor.
    - Activate the Immediate window (Ctrl+G)
    - Type ? ActiveWorkbook.DialogSheets.Count and press Enter.
    - Type ? ActiveWorkbook.Excel4MacroSheets.Count and press Enter.
    Does either return a value greater than 0?

  5. #5
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Macro alert (Excel 2003 sp2)

    There may be just a single space in any of them.

    Open all modules behind the sheets and the ThisWorkbook module. Then for each module, hit control-a and del and close its code window. Now save the file.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  6. #6
    2 Star Lounger
    Join Date
    Jan 2004
    Location
    Melbourne, Fl USA
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    That was it! I wanted to see which sheet might be causing this, I did the ctl+a +del on one sheet, then saved, closed and reopened. I did it to each until the prompt went away. Thanks!

Posting Permissions

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