PC Review


Reply
Thread Tools Rate Thread

calling a worksheet function from another worksheet in same workbo

 
 
Liz
Guest
Posts: n/a
 
      23rd Jun 2008
I know that I should know how to do this, but I am obviously having a "blank"
moment. Can anyone help?

I want to call some code in the "Deactivate" event of one worksheet from
another worksheet.


--
It it''s meant to be, it won''t pass you by!
 
Reply With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      23rd Jun 2008
Sheet1.Worksheet_Deactivate

worked for me.

You'll have to make it Public though (or expose it through another Public
procedure).

Tim

"Liz" <(E-Mail Removed)> wrote in message
news:A67D107E-C50C-4E93-A38E-(E-Mail Removed)...
>I know that I should know how to do this, but I am obviously having a
>"blank"
> moment. Can anyone help?
>
> I want to call some code in the "Deactivate" event of one worksheet from
> another worksheet.
>
>
> --
> It it''s meant to be, it won''t pass you by!



 
Reply With Quote
 
Liz
Guest
Posts: n/a
 
      23rd Jun 2008
Tim, thanks for the reply. I did not put down my question correctly. What I
want to do is on the Deactivate event of one worksheet, call a Function
("UpdChartMonth") that is a public function on another worksheet. The purpose
of UpdChartMonth is to update a chart on this "other" worksheet as a result
of changes being made on the first worksheet. Tks!
--
It it''s meant to be, it won''t pass you by!


"Tim Williams" wrote:

> Sheet1.Worksheet_Deactivate
>
> worked for me.
>
> You'll have to make it Public though (or expose it through another Public
> procedure).
>
> Tim
>
> "Liz" <(E-Mail Removed)> wrote in message
> news:A67D107E-C50C-4E93-A38E-(E-Mail Removed)...
> >I know that I should know how to do this, but I am obviously having a
> >"blank"
> > moment. Can anyone help?
> >
> > I want to call some code in the "Deactivate" event of one worksheet from
> > another worksheet.
> >
> >
> > --
> > It it''s meant to be, it won''t pass you by!

>
>
>

 
Reply With Quote
 
cush
Guest
Posts: n/a
 
      23rd Jun 2008
Assuming that you have a function called UpdChartMonth,

In your Deactivate procedure have you tried entering the line:

UpdChartMonth()



"Liz" wrote:

> Tim, thanks for the reply. I did not put down my question correctly. What I
> want to do is on the Deactivate event of one worksheet, call a Function
> ("UpdChartMonth") that is a public function on another worksheet. The purpose
> of UpdChartMonth is to update a chart on this "other" worksheet as a result
> of changes being made on the first worksheet. Tks!
> --
> It it''s meant to be, it won''t pass you by!
>
>
> "Tim Williams" wrote:
>
> > Sheet1.Worksheet_Deactivate
> >
> > worked for me.
> >
> > You'll have to make it Public though (or expose it through another Public
> > procedure).
> >
> > Tim
> >
> > "Liz" <(E-Mail Removed)> wrote in message
> > news:A67D107E-C50C-4E93-A38E-(E-Mail Removed)...
> > >I know that I should know how to do this, but I am obviously having a
> > >"blank"
> > > moment. Can anyone help?
> > >
> > > I want to call some code in the "Deactivate" event of one worksheet from
> > > another worksheet.
> > >
> > >
> > > --
> > > It it''s meant to be, it won''t pass you by!

> >
> >
> >

 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      23rd Jun 2008
Similar to before:

Sheet1.UpdChartMonth

(adjusted based on the codename of the sheet containing UpdChartMonth)

Tim

"Liz" <(E-Mail Removed)> wrote in message
news:FC41B57F-08D8-48BF-AAA4-(E-Mail Removed)...
> Tim, thanks for the reply. I did not put down my question correctly. What
> I
> want to do is on the Deactivate event of one worksheet, call a Function
> ("UpdChartMonth") that is a public function on another worksheet. The
> purpose
> of UpdChartMonth is to update a chart on this "other" worksheet as a
> result
> of changes being made on the first worksheet. Tks!
> --
> It it''s meant to be, it won''t pass you by!
>
>
> "Tim Williams" wrote:
>
>> Sheet1.Worksheet_Deactivate
>>
>> worked for me.
>>
>> You'll have to make it Public though (or expose it through another Public
>> procedure).
>>
>> Tim
>>
>> "Liz" <(E-Mail Removed)> wrote in message
>> news:A67D107E-C50C-4E93-A38E-(E-Mail Removed)...
>> >I know that I should know how to do this, but I am obviously having a
>> >"blank"
>> > moment. Can anyone help?
>> >
>> > I want to call some code in the "Deactivate" event of one worksheet
>> > from
>> > another worksheet.
>> >
>> >
>> > --
>> > It it''s meant to be, it won''t pass you by!

>>
>>
>>



 
Reply With Quote
 
Liz
Guest
Posts: n/a
 
      23rd Jun 2008
Tim, thanks for the quick response and, of course, you are correct!

Major Duh! moment!

Tks muchly
--
It it''s meant to be, it won''t pass you by!


"Tim Williams" wrote:

> Similar to before:
>
> Sheet1.UpdChartMonth
>
> (adjusted based on the codename of the sheet containing UpdChartMonth)
>
> Tim
>
> "Liz" <(E-Mail Removed)> wrote in message
> news:FC41B57F-08D8-48BF-AAA4-(E-Mail Removed)...
> > Tim, thanks for the reply. I did not put down my question correctly. What
> > I
> > want to do is on the Deactivate event of one worksheet, call a Function
> > ("UpdChartMonth") that is a public function on another worksheet. The
> > purpose
> > of UpdChartMonth is to update a chart on this "other" worksheet as a
> > result
> > of changes being made on the first worksheet. Tks!
> > --
> > It it''s meant to be, it won''t pass you by!
> >
> >
> > "Tim Williams" wrote:
> >
> >> Sheet1.Worksheet_Deactivate
> >>
> >> worked for me.
> >>
> >> You'll have to make it Public though (or expose it through another Public
> >> procedure).
> >>
> >> Tim
> >>
> >> "Liz" <(E-Mail Removed)> wrote in message
> >> news:A67D107E-C50C-4E93-A38E-(E-Mail Removed)...
> >> >I know that I should know how to do this, but I am obviously having a
> >> >"blank"
> >> > moment. Can anyone help?
> >> >
> >> > I want to call some code in the "Deactivate" event of one worksheet
> >> > from
> >> > another worksheet.
> >> >
> >> >
> >> > --
> >> > It it''s meant to be, it won''t pass you by!
> >>
> >>
> >>

>
>
>

 
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
Calling a user Function in Worksheet rameshs319@gmail.com Microsoft Excel Programming 1 7th Feb 2008 05:55 PM
Calling VBA function from a worksheet Mike Microsoft Excel Programming 7 14th Jan 2008 08:26 PM
Link from worksheet in one workbook to worksheet in another workbo =?Utf-8?B?UGFt?= Microsoft Excel New Users 1 3rd Nov 2006 06:27 PM
Link from worksheet in one workbook to worksheet in another workbo =?Utf-8?B?UGFt?= Microsoft Excel Misc 1 3rd Nov 2006 06:27 PM
calling VBA function within a worksheet =?Utf-8?B?bWF0ZWxvdA==?= Microsoft Excel Programming 2 20th Mar 2006 06:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 PM.