• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA code snippet to enter numbers in a cell upon selection

Hi,

Can you please provide a code snippet to enter values (1 to 12) in a particular cell? The requirement is to change month according to the selection. There are next & back button to guide the user for changes.

Or simply enter January by default, click next to enter February, next to March and so on.

Any help?

Please see the attached file.

Regards,
Karthik
 

Attachments

  • Excel Calendar with formulae.xlsx
    23.7 KB · Views: 1
see attached

Note the the controls simply increment/decrement the cell E9
The cell E10 is now a date and is constructed using the Year and Months in the relevent cells
 

Attachments

  • Excel Calendar with formulae-Hui.xlsm
    28.4 KB · Views: 2
see attached

Have a look at the code module and see how to limit the values
 

Attachments

  • Excel Calendar with formulae-Hui.xlsm
    28.5 KB · Views: 2
Back
Top