VBA code made on Excel 2007 not working on Excel 2013

Loreleii7

New Member
Joined
Apr 30, 2013
Messages
27
Hi everyone!

I made two buttons using VBA on excel 2007 but they don´t work when I click on them when I open the worksheet on Excel 2013. I don´t receive any error message, they just don´t work.

These are the codes I used:

1st Button: Worksheets("Input").Range("C9, B15:B113, I15:I113, K15:K113").ClearContents

2nd Button: [E12] = [E12] + 1


Does anyone know how I can solve this?

Thank you so much!!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
So what do you mean by 'don't work' exactly? Are your buttons ActiveX or Forms Controls?


They are ActiveX.
Actually, I have 2 more buttons that are Form Controls and I recorded a macro for them (for printing) and they work.
The buttons that doesn't work are both ActiveX and both programmed using VBA. I just click on them and nothing happens... :(
 
Upvote 0
So you are clicking on an ActiveX button and it's Click event doesn't fire? The only reason I can think of for that to happen is being in Design Mode or that Macros are not enabled. What do you see when you point at the button?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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