Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default 2 User Forms Comunicating?

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).Exec ute

UserForm1.Show

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default 2 User Forms Comunicating?

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).Exec ute

UserForm1.Show

End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default 2 User Forms Comunicating?

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).Exec ute

UserForm1.Show

End Sub

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
User forms - How do I...? Jock Excel Programming 2 June 27th 07 09:08 AM
User Forms Donna C Excel Programming 2 December 19th 06 09:42 AM
Comunicating with FAX software Stuart[_26_] Excel Programming 2 June 7th 05 02:46 PM
User forms eklarsen[_7_] Excel Programming 5 May 17th 04 05:36 AM
User forms eklarsen[_4_] Excel Programming 2 May 6th 04 06:09 PM


All times are GMT +1. The time now is 06:32 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"