Excel Calendar

Pauljj

Well-known Member
Joined
Mar 28, 2004
Messages
2,047
I am using the already buildt calendar option, which was working for me and seems to have stopped now and I wondered if anyone can see what might be wrong

Part of the worksheet code is


Private Sub worksheet_selectionchange(ByVal target As Excel.range)

If target.Address(0, 0) = "B3" Then

: ShowIt

range("C12:I56").Interior.ColorIndex = xlNone

range("M12:M56").ClearContents
range("O12:O56").ClearContents
range("Q12:Q56").ClearContents
range("S12:S56").ClearContents
range("U12:U56").ClearContents
range("W12:W56").ClearContents
range("Y12:Y56").ClearContents

End If


The above bit seems to be where the problem is as when I go to the macro ShowIt

which is


Sub ShowIt()

Calendar.Show

End Sub


When i run that, the calendar shows. So does anyone know why, when I click on cell B3 all the formatting changes as it should be it doesn't go to 'Showit' ???


Very confused
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,224,537
Messages
6,179,408
Members
452,912
Latest member
alicemil

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