Is there a cache in Excel - Old VBA code seems to be running

newcoder

New Member
Joined
Jul 1, 2011
Messages
15
I had a msgbox a few days ago that stated:

Msgbox("you must call (AAA)AAA-AAAA for help").

This was changed to the following: And I have validated the code numerous times..
Msgbox("you must call (111)111-1111 for help").

However when I run this I still get (AAA)AAA-AAAA. However when I put a a break point in the code and step through it I get the new number (111)111-1111)..

It appears this old message is cached somehow, or am I missing something in the code? Is there a way that I might have compiled this and this is what is running?

I am really confused..

Any helpful thoughts?

cheers.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Search through all of your modules for "(AAA)AAA-AAAA ". Dont forget your obect modules too.
 
Upvote 0
I have...
I have step through it with Debug and I get the correct phone number, but run it from the command button I get the wrong number...

I am going crazy...

any other thoughts?
 
Upvote 0
I would suggest you change the code in the button to CALL the macro you have in the other module.
 
Upvote 0

Forum statistics

Threads
1,224,579
Messages
6,179,656
Members
452,934
Latest member
mm1t1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top