VBA code quit working?

Aron19

New Member
Joined
Sep 14, 2011
Messages
20
Ive got a command button that I am using in a process that simply quit working. If I run the text through VB it works fine but from the spreadsheet not so much. Any idea of why this is happening and how I can get it to work again?

Private Sub CommandButton46_Click()
Range("A30:V100").ClearContents
CommandButton47.Visible = True
CommandButton48.Visible = True
Range("A30").Value = "19"
Range("A31").Value = "20"
Range("B30").Value = "Does project have potential in other areas to warrant continued development?"
Range("C30").Value = "Are there any other groups within company that could benefit from continued development?"
End Sub
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Check to see if you're in 'Design Mode'.
On the Controls Toolbox toolbar, the small button with the blue triangle, ruler & pencil.
If that button's pressed your routine(s) won't be able to execute.

Hope it helps.
 
Upvote 0
Yea I made sure that I wasnt in design mode and it still doesnt help I dont know why it isnt working haha
 
Upvote 0
All of the other buttons are working but not this one

This button will erase previous text from another choice like it is supposed to but it will not show the text it is supposed to along with the next set of buttons.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,740
Members
452,940
Latest member
rootytrip

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