Excel VBA, StrPtr

Steve B 1 Reputation point
2025-07-29T18:40:54.66+00:00

Hi all.
I guess it's been a while since I've been here.... everything has seriously changed.

A long time ago, an Excel MVP had helped me with the 2007 changes to the Ribbon, and working with his code, I'd created a gallery for my Excel Ribbon. It worked all the way up to at least 2016, and then I'd stepped away from using Excel for several years, and now I'm back, and want to get some of my code working again.

This ribbon code for my gallery being one of them.

https://jkp-ads.com/rdb/win/s2/win011.htm

Since this is the item that threw the error, I figure I better start here.

this throws a mismatch error.

StrPtr

Does anyone remember these? Does anyone know how to update the code to work in the present day form of VBA?

Your help would be appreciated.

TYIA.

Developer technologies | Visual Basic for Applications
{count} votes

1 answer

Sort by: Most helpful
  1. HARDCORE GAMES™ 165 Reputation points
    2025-07-29T19:47:17.0466667+00:00

    I use Excel extensively but I have not changed menus as I tend to use worksheets for financial and statistical analysis etc

    I use VBA when formula are too complex for the = method, ut in practice this is rare

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.