UserForms

  • Thread starter Thread starter soniya
  • Start date Start date
S

soniya

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
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top