Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Userform.Activate

Hi all, Firstly thanks to everyone who has answered my
questions of the last few days !!!

I have a userform that has some code in the activate
event, this looks at a value in sheet1.range("A1") and
uses this to scan along a data table and fill in some
textboxes, this all works fine, but when i use the
userfrom1.hide option, then change the value on sheet 1,
then use userfrom1.show again, it appears to be still
using the old value, is this becase Im not really
unloading the form but simply hiding it from view ? if so
whats the correct way to unload the form so that it
clears the data from the form.activate event ?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Userform.Activate

Neil,

Unload UserForm1

John

Neil wrote:

Hi all, Firstly thanks to everyone who has answered my
questions of the last few days !!!

I have a userform that has some code in the activate
event, this looks at a value in sheet1.range("A1") and
uses this to scan along a data table and fill in some
textboxes, this all works fine, but when i use the
userfrom1.hide option, then change the value on sheet 1,
then use userfrom1.show again, it appears to be still
using the old value, is this becase Im not really
unloading the form but simply hiding it from view ? if so
whats the correct way to unload the form so that it
clears the data from the form.activate event ?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Userform.Activate

Use this to unload the userform

Unload userform1



--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Neil" wrote in message ...
Hi all, Firstly thanks to everyone who has answered my
questions of the last few days !!!

I have a userform that has some code in the activate
event, this looks at a value in sheet1.range("A1") and
uses this to scan along a data table and fill in some
textboxes, this all works fine, but when i use the
userfrom1.hide option, then change the value on sheet 1,
then use userfrom1.show again, it appears to be still
using the old value, is this becase Im not really
unloading the form but simply hiding it from view ? if so
whats the correct way to unload the form so that it
clears the data from the form.activate event ?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't activate an add-ins Ivan Setting up and Configuration of Excel 0 June 5th 08 09:33 AM
activate a page of a Multipage in Userform Jeff Excel Discussion (Misc queries) 1 February 8th 08 06:16 PM
Run Code On Activate Theresa Excel Worksheet Functions 5 December 18th 07 05:47 AM
Password userform activate Moh Excel Discussion (Misc queries) 2 December 14th 07 09:01 AM
When to Activate? Antonio Excel Discussion (Misc queries) 5 June 8th 06 12:26 AM


All times are GMT +1. The time now is 11:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"