Calendar Control Linked Cell

M

Marc Gendron

Let's say my CalendarControl LinkedCell is F7. My macro selects column F and
inserts a column. This makes the LinkedCell property of my Calendar go to
#REF!. I would like to re-program it back to cell F7 after having inserted
my column. Of course, Calendar.LinkedCell = F7 would do it, ....but I get an
error message cause I cannot find the property "LinkedCell" for the Calendar
object.
How do I go about it ?

Thanks in advance for your kind help
Marc
 
D

Dave Peterson

Maybe...

With Worksheets("Sheet1")
.Calendar1.LinkedCell = .Range("F7").Address(external:=True)
End With
 
M

Marc Gendron

Thank you Dave, works perfectly !

Dave Peterson said:
Maybe...

With Worksheets("Sheet1")
.Calendar1.LinkedCell = .Range("F7").Address(external:=True)
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top