Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Running sheet from another sheet ... and back

Przemek,

Private Sub CloseButton_Click()
ActiveWorkbook.Save ' saving myfile.xls
Unload WprowadzDaneFaktury

Workbooks("first.xls").Sheets("Startform").activat e
End Sub

To show a form when a worksheet is activated

In the worksheet code put
Private Sub Worksheet_Activate()
myform.show
End Sub

If you size your form full screen, the worksheet will be hidden behind it.

To show a form when the workbook is opened

Insert a module and put the following code into it:
Private Sub Auto_Open()
myform.show
End Sub

HTH
Henry

"Przemek Wrzesinski" wrote in message
...
Hi,
I've got one sheet (let's call it first.xls) with userform, which runs

other
sheet:

Private Sub RegisterButton_Click()
Workbooks.Open Filename:= "myfile.xls"
Unload Startform ' hiding first userform
Windows("myfile.xls").Activate

End Sub

In the sheet myfile.xls I've got another userform (opens on loading),

which
helps input new data to the sheet. My problem is, that I don't know how to
make macro, which could save & close myfile.xls and return user to my
first.xls and run again Startform, smtg like this:

Private Sub CloseButton_Click()
ActiveWorkbook.Save ' saving myfile.xls
Unload WprowadzDaneFaktury
Worksheets(first.xls).Startform.Show ' it stops here :(
End Sub

BTW How to open sheet and showing only startform without sheet ?

TIA

Przemek
--
mors(at)morsik(dot)net



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
Back to Last Sheet? msnyc07 Excel Discussion (Misc queries) 3 June 16th 08 10:36 AM
how do i bring back excel sheet ? MoBi Excel Worksheet Functions 3 January 14th 08 01:52 PM
last sheet or go back Shane New Users to Excel 3 August 23rd 07 01:16 AM
How do I get the date entry bar back (at top of sheet)? Linzsocal Excel Discussion (Misc queries) 1 July 17th 06 06:17 PM
Can't get back to Sheet 1. Seems to be lost. Tried unhide, does n jeanmcl Excel Worksheet Functions 1 July 6th 05 03:58 AM


All times are GMT +1. The time now is 06:23 AM.

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"