How to use Userform checkboxs to paste formula into worksheet

michaelehoudek

New Member
Joined
Jan 15, 2016
Messages
21
I created a userform calendar with a checkbox for each day. The end user clicks on a button on the worksheet, which brings up the userform "Dates" My intent was to allow users to check the dates they wanted, then the VBA would paste a formula (=$H$1) into the corresponding dates on the worksheet calendar. I didn't know how much I don't know!

1> Once I Show the userform (calendar), how do I save the checkmarks? The VBA freezes on the form, and only proceeds when I "X" out of it (which erases the checks).
2> Once I figure out how to save the userform (named "Dates"), how do I paste my formula into the worksheet "Calendar".
3> I think I can fiqure out how to clear all the checkmarks when I bring the Dates userform back up, but would be handy to get some direction.

Thanks for any help you can offer. Please don't assume that I know more than I do! :)


MrExcel.JPG
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,213,554
Messages
6,114,280
Members
448,562
Latest member
Flashbond

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