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

I have workbook(FillOrders) with code that opens another file (Orders) and
fills various worksheets (in Orders) from several other files that are opened
and then closed. When 'FillOrders' has completed filling all the worksheets
in 'Orders' , the following code is executed:

Workbooks("Orders.xls").Worksheets("Headers").Acti vate
Workbooks("FillOrders.xls").Close

The code in 'Orders' for the worksheet 'Headers' activate event is
"frmMenu.Show".
After 'FillOrders' is closed (by code above) , the worksheet 'Headers' (in
'Orders') is displayed, but frmMenu is not being displayed. If I switch to
another sheet and back to 'Headers', the form is displayed as expected.

How can I get this form to show automatically after 'FillOrders' is closed?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Showing form

You need some code that says when Headers sheet is activated then show the
form. Here is the code you will need to add in the worksheet object called
Sheet(??) (Hearders)

Private Sub Worksheet_Activate()
frmMenu.Show
End Sub

Notice that this might make the form show ANYtime the worksheet is
activated. Use state management to control the form.

Best of luck


--
Stewart Rogers
DataSort Software, L.C.


"Tim Kredlo" wrote:

I have workbook(FillOrders) with code that opens another file (Orders) and
fills various worksheets (in Orders) from several other files that are opened
and then closed. When 'FillOrders' has completed filling all the worksheets
in 'Orders' , the following code is executed:

Workbooks("Orders.xls").Worksheets("Headers").Acti vate
Workbooks("FillOrders.xls").Close

The code in 'Orders' for the worksheet 'Headers' activate event is
"frmMenu.Show".
After 'FillOrders' is closed (by code above) , the worksheet 'Headers' (in
'Orders') is displayed, but frmMenu is not being displayed. If I switch to
another sheet and back to 'Headers', the form is displayed as expected.

How can I get this form to show automatically after 'FillOrders' is closed?

TIA

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Showing form

Just got back to this thread and read your reply.
How is what you are suggesting different from what I am doing?
From original post: " The code in 'Orders' for the worksheet 'Headers'
activate event is
"frmMenu.Show"."



"Datasort" wrote:

You need some code that says when Headers sheet is activated then show the
form. Here is the code you will need to add in the worksheet object called
Sheet(??) (Hearders)

Private Sub Worksheet_Activate()
frmMenu.Show
End Sub

Notice that this might make the form show ANYtime the worksheet is
activated. Use state management to control the form.

Best of luck


--
Stewart Rogers
DataSort Software, L.C.


"Tim Kredlo" wrote:

I have workbook(FillOrders) with code that opens another file (Orders) and
fills various worksheets (in Orders) from several other files that are opened
and then closed. When 'FillOrders' has completed filling all the worksheets
in 'Orders' , the following code is executed:

Workbooks("Orders.xls").Worksheets("Headers").Acti vate
Workbooks("FillOrders.xls").Close

The code in 'Orders' for the worksheet 'Headers' activate event is
"frmMenu.Show".
After 'FillOrders' is closed (by code above) , the worksheet 'Headers' (in
'Orders') is displayed, but frmMenu is not being displayed. If I switch to
another sheet and back to 'Headers', the form is displayed as expected.

How can I get this form to show automatically after 'FillOrders' is closed?

TIA

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
How do I set up a standard form showing incentive calculations KeithB Excel Discussion (Misc queries) 2 May 30th 05 09:41 AM
background color showing only when in email form David Excel Discussion (Misc queries) 1 January 23rd 05 09:46 PM
Add & Delete Records in Excel using a form showing a scrollbar also! eijaz Excel Programming 1 October 26th 03 05:31 PM
Run time Error -2147352571 when showing a form Ric Payne Excel Programming 2 October 2nd 03 04:48 AM
How to set focus back to sheet after showing a user form Stephen Bullen Excel Programming 0 July 22nd 03 10:34 AM


All times are GMT +1. The time now is 02:15 AM.

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

About Us

"It's about Microsoft Excel"