Right-click on the button.
If it's a Form control, choose 'Assign macro' which will be in the context pop-up. If it's an Active X control, chose 'View Code'.
Main Topics
Browse All TopicsI have what might be the simplest of questions. I have some code for a button that's causing a link issue. It's in the 'onaction' of a button and I don't know how to find it and change/delete it. Any ideas?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Well, I'm using 2007 and was getting the broken links error. when I chose to 'edit links', it would tell me what source file it was having problems linking to. When I searched the workbook for a reference to that file, it came up empty. I found this useful tool to search for broken links and determined it was an issue on this worksheet, with this particular button in the OnAction event. but when I right-click on the button and choose to 'view code' I get a "Reference is not valid" error.
Business Accounts
Answer for Membership
by: MakriniPosted on 2009-11-01 at 01:33:35ID: 25713022
What sort of link issue...
If the code errors when you press the button - hit "debug" and you can see the actual line of code causing the problem - and fix it whilst you are there...
It also depends on the type of button. - if it's the simple sort - right click the button and click "Assign Macro" - and edit the Macro that is assigned to it.
If its the other sort - right click and go properties - and check which macro it is running from there.
If its a Macro on a form - there is another method all together.
Post your workbook and can tell you the exact method.