Excel VBA Application.Goto error introduced in 15.23 and work around

Anonymous
2016-06-15T12:11:22+00:00

Hi

It seems upgrade to 15.23 causes a 1004 error if you use Application.Goto to get to a named range and the worksheet where the named range exists is not the active worksheet. 

You can get around this by using the Activate method to get to the worksheet first before using Application.Goto.

Microsoft 365 Insider | Excel | MacOS

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

5 answers

Sort by: Oldest
  1. Anonymous
    2016-07-01T08:48:59+00:00

    Thanks for this - a godsend that I was able to find this answer so quickly.  I had a panic from a client whose spreadsheet macro suddenly failed after years of successful use. It worked fine on my (Windows) PC, so I suspected it was something to do with the Mac version! Now to check and change all the code for all my Mac clients (sigh).

    Was this answer helpful?

    0 comments No comments
  2. Jim G 134K Reputation points MVP
    2016-07-05T13:42:46+00:00

    You should now have access to the Fast Insider build 15.25.

    Does this problem exhibit in 15.25?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-07-06T09:09:05+00:00

    Ruuning 15.25 and the error is still there in this new version

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2016-07-07T08:33:16+00:00

    Can't get onto client site ATM to check, but mjnaylor8 says not. Incidentally, I had to come home to edit code in Windows version as Mac VBA editing is so severely disabled.  No variable values shown on hover, no editing toolbar, just horrible. I thought the versions were supposed to be the same once we got to 2016?

    Was this answer helpful?

    0 comments No comments
  5. Jim G 134K Reputation points MVP
    2016-07-07T15:43:38+00:00

    Microsoft is building a new VB Editor for Office for Mac. Stick with the Insider Fast program to be the first to see it.

    Was this answer helpful?

    0 comments No comments