Compile Error VBA Ms Acecss

MUKESHY12390

Well-known Member
Joined
Sep 18, 2012
Messages
901
Office Version
  1. 2013
  2. 2011
  3. 2010
  4. 2007
Platform
  1. Windows
Hi All,

I have made some changes to macro which someone built in past, macro works perfectly without any debug.

there are several form on it , I changed the Control number and write new code (but didn't delete old control code is still there , although these lines don't affect the code)

since there several form and so many control on it with number of event, if I want to find all control which is not available in macro Is there any way I can find it.


eg: this is scenario I'm facing.. there was one commandButton called "Command11 and it had click event. later I changed the name and write new click event. problem is old one is still there and macro doesn't any alert for it.

Is there any way I can find these all control even with not exit in macro?

Private Sub Command11_Click()
'''this is old control called "Command11"
MsgBox "Hi"
End Sub


Private Sub cmd_test_Click()
'''this is old control with revised name
MsgBox "Hello World!"
End Sub
 
Last edited:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I think I got the option, it is Debug --->Compile Database.


Thanks All!
 
Upvote 0

Forum statistics

Threads
1,214,547
Messages
6,120,139
Members
448,948
Latest member
spamiki

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