private sub checkbox2_click()

kevin lazell

Well-known Member
Joined
Jun 2, 2004
Messages
513
hi everyone
i have set up a checkbox that when clicked goes into a code thus

private sub checkbox2_click()
private sub worksheet_calculate()
i get ambiguous name error
iread the help file that came up but i did not understand it
can someone help please :confused:
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
What are you trying to do in your routine?

Every subroutine (macro) starts with SUB and must end with END SUB

If you are trying to make the current workbook calculate, you could try:

Private Sub checkbox2_click()
Application.Calculate
End Sub

It appears that you inserted the start of another procedure (worksheet_calculate) inside the first procedure.
 
Upvote 0
HI ARTEMUS
thanks a lot for your reply it worked a dream :biggrin:
perhaps you should have written the help files
i found it was all gobble-de-gook to me
thanks again
kevin
 
Upvote 0

Forum statistics

Threads
1,215,019
Messages
6,122,707
Members
449,093
Latest member
Mnur

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