Consulting

Results 1 to 6 of 6

Thread: Macro screw ups

  1. #1

    Question Macro screw ups

    INITIAL admission - this is crossposting. I couldn't get a reply on the Mr Excel message board & so I'm trying here - is that okay? If not ignore below...

    For reasons I cannot fathom, my personal macros, which were nicely assigned to buttons on my toolbar and which did really difficult things like toggling between manual and auto calc, no longer seem to work properly. If I use the 'Open Office Document' dialog box then even though I have a macro worksheet in the xlstart folder, the macros on the command bar become assigned to a directory reference rather than the open worksheet. Consequently, Excel tells me the worksheet is already open and it won't run the macro. I have no idea why this is now happening since it never used to. I can get the macros to work by terminating the hidden worksheet or by manually reassigning but this seems rather bizarre and is a real pain.

    Instead of simply referring to the PMAC.xls macro (my personal macro) worksheet, when I examine each button the macro source has some reference like...

    'C:\PROGRA~1\MICROS~2\Office10\xlstart\PMAC.XLS'!ToggleCalc

    As a quick fix, I can reassign the macros to the open worksheet, but then after I close and reopen later, the same problem reoccurs. Even more bizarrely, If I open a workbook using the 'New Office Document' dialog box (load a blank worksheet and then load the one I want to work on), then the Macros work fine.

    Can anyone let me know what's going on, and even better why its changed?

    Cheers.
    Peter

  2. #2
    Site Admin VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,005
    Location
    Thanks for declaring its a cross post - most folk don't!, the correct way however is to provide a link to your other post(s).

    What version of Office are you using?
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  3. #3

  4. #4
    Office XP is the version.

  5. #5
    Problem solved! But reason for problem still a mystery...

    Details below.

    http://www.mrexcel.com/forum/showthr...77#post1584677

  6. #6
    VBAX Tutor
    Joined
    Aug 2007
    Posts
    273
    Location
    I am posting here because I don?t have an account on MR. Excel, but if your personal workbook is on a portable hard drive, then when you remove the drive and plug it back in, it doesn?t always get the same letter address, a thumb drive or a second portable drive can steal its original Letter. Thus any links to this workbook, get messed up.

    This address changing has caused me trouble in other applications, so I would say its probably the cause of your trouble with excel. Your best bet is to move your personal workbook back on to your internal hard drive, unless it absolutely must be on the external.

Posting Permissions

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