PC Review


Reply
Thread Tools Rate Thread

2 User Forms Comunicating?

 
 
Dan Tabla
Guest
Posts: n/a
 
      6th Jan 2010
Hi all,
I had the intention to create a VBA program/script that:

Step1. Calls a "FindAll" dialog (user can view and make the best choice out
of the founded elements)

Step2. When user closes the "FindAll" dialog, my UserForm1 should show up
and run different Sub() using the last value that "FindAll" dialog selected.

My problem is that I can't use the "FindAll" dialog because the focus is on
the UserForm1 because it showed up lately.

UNFORTUNATELY I CAN'T USE OTHER "FIND" DIALOG.
IF ANYONE CAN HELP ME I WOULD APPRECIATED BECAUSE I REALLY NEED IT!

This is my bad coding under Module1:

Sub scula()

Application.CommandBars.FindControl(ID:=1849).Execute

UserForm1.Show

End Sub
 
Reply With Quote
 
 
 
 
OssieMac
Guest
Posts: n/a
 
      7th Jan 2010
Hi Dan,

Try one of the following.
In Design mode set the ShowModal property to False

Or when showing the userform

UserForm1.Show False

or
UserForm1.Show vbModeless 'Same as False

--
Regards,

OssieMac


"Dan Tabla" wrote:

> Hi all,
> I had the intention to create a VBA program/script that:
>
> Step1. Calls a "FindAll" dialog (user can view and make the best choice out
> of the founded elements)
>
> Step2. When user closes the "FindAll" dialog, my UserForm1 should show up
> and run different Sub() using the last value that "FindAll" dialog selected.
>
> My problem is that I can't use the "FindAll" dialog because the focus is on
> the UserForm1 because it showed up lately.
>
> UNFORTUNATELY I CAN'T USE OTHER "FIND" DIALOG.
> IF ANYONE CAN HELP ME I WOULD APPRECIATED BECAUSE I REALLY NEED IT!
>
> This is my bad coding under Module1:
>
> Sub scula()
>
> Application.CommandBars.FindControl(ID:=1849).Execute
>
> UserForm1.Show
>
> End Sub

 
Reply With Quote
 
Dan Tabla
Guest
Posts: n/a
 
      9th Jan 2010
thank you so much Ossie for your help! Your answer made me happy for the rest
of the day! I really need it that to work!

Do you think is possible to switch from a value to another in
"FindAll" dialog and have their value updated every time in the UserForm2?

"OssieMac" wrote:

> Hi Dan,
>
> Try one of the following.
> In Design mode set the ShowModal property to False
>
> Or when showing the userform
>
> UserForm1.Show False
>
> or
> UserForm1.Show vbModeless 'Same as False
>
> --
> Regards,
>
> OssieMac
>
>
> "Dan Tabla" wrote:
>
> > Hi all,
> > I had the intention to create a VBA program/script that:
> >
> > Step1. Calls a "FindAll" dialog (user can view and make the best choice out
> > of the founded elements)
> >
> > Step2. When user closes the "FindAll" dialog, my UserForm1 should show up
> > and run different Sub() using the last value that "FindAll" dialog selected.
> >
> > My problem is that I can't use the "FindAll" dialog because the focus is on
> > the UserForm1 because it showed up lately.
> >
> > UNFORTUNATELY I CAN'T USE OTHER "FIND" DIALOG.
> > IF ANYONE CAN HELP ME I WOULD APPRECIATED BECAUSE I REALLY NEED IT!
> >
> > This is my bad coding under Module1:
> >
> > Sub scula()
> >
> > Application.CommandBars.FindControl(ID:=1849).Execute
> >
> > UserForm1.Show
> >
> > End Sub

 
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
Comunicating with a Service DaveP Microsoft C# .NET 1 10th Sep 2007 08:33 PM
Trouble comunicating between XP SP2 and win 2003 =?Utf-8?B?R3JhZW1l?= Windows XP Networking 10 23rd Jul 2006 07:57 AM
Comunicating with FAX software Stuart Microsoft Excel Programming 2 7th Jun 2005 02:46 PM
Comunicating from server towards windows.forms clients aaa@bbb.hr Microsoft C# .NET 2 16th Aug 2004 09:14 PM
Comunicating with OLE object field MP218 Microsoft Access Form Coding 0 1st Jul 2004 10:12 AM


Features
 

Advertising
 

Newsgroups
 


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