PC Review


Reply
Thread Tools Rate Thread

auto start code when a sheet is looked at

 
 
Southern at Heart
Guest
Posts: n/a
 
      8th Jan 2008
Can I have my code (that updates data on sheet("Materials") to automatically
activate when the user selects that tab in the list of sheets?
I tried this:
Sub Worksheet_Activate()
Update_Materials
End Sub

where Update_Materials is the sub to do the work, but nothing happens when I
flip between sheets...

 
Reply With Quote
 
 
 
 
Nick Hodge
Guest
Posts: n/a
 
      8th Jan 2008
Try specifically calling it

Sub Worksheet_Activate()
Call Update_Materials
End Sub
--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(E-Mail Removed)DTHIS
web: www.nickhodge.co.uk




"Southern at Heart" <(E-Mail Removed)> wrote in
message news:2F08AED1-B8A5-47AB-87EE-(E-Mail Removed)...
> Can I have my code (that updates data on sheet("Materials") to
> automatically
> activate when the user selects that tab in the list of sheets?
> I tried this:
> Sub Worksheet_Activate()
> Update_Materials
> End Sub
>
> where Update_Materials is the sub to do the work, but nothing happens when
> I
> flip between sheets...
>

 
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
Average of values that need to be looked up from another sheet NLJR Microsoft Excel Worksheet Functions 1 30th Jun 2009 04:56 PM
Auto transfer rows from 1 sheet to another by account code. =?Utf-8?B?U3lk?= Microsoft Excel Worksheet Functions 0 9th Mar 2006 04:05 PM
Code for auto filling in Excel based on number of months, & start date Diane Sulton Microsoft Excel Programming 1 1st Mar 2006 01:15 AM
code to either auto wrap text box or start new one job Microsoft Powerpoint 1 28th Feb 2005 06:27 PM
menu drop down auto to new page, i have already looked on web and in help Jasonc Microsoft Frontpage 2 22nd Jan 2004 06:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 AM.