PC Review


Reply
Thread Tools Rate Thread

Calendar Control Linked Cell

 
 
Marc Gendron
Guest
Posts: n/a
 
      24th Nov 2008
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
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      24th Nov 2008
Maybe...

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



Marc Gendron wrote:
>
> 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


--

Dave Peterson
 
Reply With Quote
 
Marc Gendron
Guest
Posts: n/a
 
      25th Nov 2008
Thank you Dave, works perfectly !

"Dave Peterson" wrote:

> Maybe...
>
> With Worksheets("Sheet1")
> .Calendar1.LinkedCell = .Range("F7").Address(external:=True)
> End With
>
>
>
> Marc Gendron wrote:
> >
> > 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

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Jump to cell based on cell results created by calendar control too JB Microsoft Excel Misc 3 15th Jan 2008 08:18 PM
TextBox control stops displaying linked cell content bda75 Microsoft Excel Misc 0 24th Jan 2007 05:26 PM
Calendar control on cell enter? =?Utf-8?B?T21lZ2FNYW4=?= Microsoft Excel Worksheet Functions 1 7th Jul 2006 09:02 PM
Can I control linked cell property value in a copied ActiveX contr =?Utf-8?B?QmVlY2hiZWFyZA==?= Microsoft Excel Misc 0 4th May 2005 10:30 PM
Control Combobox Linked Cell vs Forms Combobox Linked Cell RamblinWreck Microsoft Excel Misc 2 26th Mar 2004 03:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 PM.