Share via

Macro does not work on all computers

Anonymous
2015-02-23T16:51:44+00:00

Hi,

all of a sudden my macros do not work on some computers of my colleagues, on others they work.

It's all on W2007/64 and O2010/32. Macros activated.

In the beginning I thought it was the Dec 9th 2014 MS bug, but using the Fixit from MS does not help.

I made a very simple testing file:

I have two Active X buttons on sheet1, which call the following code.

Sub test1()

    ThisWorkbook.Activate

    Sheets("sheet1").Activate

    MsgBox "Done"

End Sub

Sub test2()

    ThisWorkbook.Activate

    Sheets("sheet2").Activate

    MsgBox "Done"

End Sub

In case it is not working, the buttons do not react on the mouse click.

When I run the macros manually the sheets("sheet1").activate does not work, when this sheet is already activated.

Activating a non active sheet works.

My files are already working for more than 10 years on all computers, therefore I have no idea what happened.

Any Idea?

TIA

Wolfgang

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Anonymous
    2015-02-25T22:40:12+00:00

    Thank you JLLatham and Ron.

    Yes I agree, I have to try all these things you mention.

    Interesting enough the files for 2104 (and the years before) still work, but the new one's not. However, they are not created on the same machine.

    I fear that there is a long way to go to find a solution.

    Wolfgang

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2015-02-25T05:14:22+00:00

    I agree with RonRosenfeld: try fixing the problem manually on the remaining machines. 

    Try to get it fixed on all computers before taking a file from any one of them that still does not work and testing it on any other computer - it seems that just like a virus, a file copied from a non-working system copied to an otherwise properly functioning system causes the problem to be created on the 'good' machine again.  At the very least, don't start copying files from one machine to another until you get them all fixed - put a test file on each one and then start attempting the fixes.

    Most people have been able to clear things up with the [FixIt] button on Microsoft's page, but obviously the manual instructions were provided for those where for some reason it just did not work.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2015-02-25T02:34:48+00:00

    Have you tried, on the computers that don't work, either manually fixing the problem (instead of using FIXIT), or doing a restore prior to the time of that update?

    Problems associated with that update are the only reason I've seen as being responsible for the issue you describe.

    See Form Controls stop working after December 2014 Updates

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2015-02-24T08:45:46+00:00

    Hi,

    the macro I mentioned works an many computers, but not on all.

    The question is:

    Why (after 10 years successfully working) the Active X command buttons on the sheet do not work, and the sheet("mySheet").activate does not work for an active worksheet.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2015-02-23T19:11:16+00:00

    try this...

    Sub qazx()

    With ThisWorkbook

    .Sheets(1).Select

    MsgBox "Done"

    .Sheets(2).Select

    MsgBox "Done"

    End With

    End Sub

    Was this answer helpful?

    0 comments No comments