#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default UserForms

Hi All,

I have userform1 and userform2

normally userform2 is activated by clicking
commandbutton1 in userform1 and when userform2 closed
userform1 is activated againd.

now if i want to activate useform2 independadly how i can
identify whether it was called from userform1 or not. so
if it is not activated from userform1 then when i close
userform2 it will not show userform1

TIA
Soniya
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default UserForms

Hi Son iya,

Create a public variable in the userform and set that before showing
indicating where activated from.

Userform2.pCaller = "Proc myMacro"
Userform2.Show

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"soniya" wrote in message
...
Hi All,

I have userform1 and userform2

normally userform2 is activated by clicking
commandbutton1 in userform1 and when userform2 closed
userform1 is activated againd.

now if i want to activate useform2 independadly how i can
identify whether it was called from userform1 or not. so
if it is not activated from userform1 then when i close
userform2 it will not show userform1

TIA
Soniya



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
Help with Userforms Panagiotis Marantos Excel Discussion (Misc queries) 2 July 25th 06 04:26 PM
I need some help with userforms T.c.Goosen1977 Charts and Charting in Excel 0 June 30th 06 09:29 AM
I need some help with userforms T.c.Goosen1977 Excel Discussion (Misc queries) 0 June 30th 06 09:27 AM
userforms Jo[_4_] Excel Programming 2 September 17th 03 10:35 PM
userforms Dave[_27_] Excel Programming 1 August 28th 03 06:25 PM


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

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"