• 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.

Open Workbook to Calendar sheet cell E2 Current Month Number

You will need the below in a code module.

Code:
Sub Auto_Open()
Dim wA As Workbook
Dim sCal As Worksheet

Set wA = ThisWorkbook
Set sCal = wA.Worksheets("Calendar")

sCal.Range("A2") = Month(Now())
sCal.Activate
sCal.Range("A2").Activate

End Sub

Hope that helps.

Regards,
Ken
 
Perfect thanks. I initially put the code in this workbook but that did not work. Sorry you did say to put in it a code module which I then did. Now it works perfectly.

Have a blessed day and thanks for your help.
 
Back
Top