LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default userform only not worksheet


I created a userform called frmLeaveRequest that I want to start whe
the user double clicks on the excel file


Code
-------------------

Private Sub Workbook_Open()
frmLeaveRequest.Show
End Sub

-------------------


I don't want the worksheet to be visible to the user, just th
userform
How can I do this?

I also want to close the active workbook and Excel if there are n
other active workbook. What else do I have to and to this code t
accomplish this??


Code
-------------------

Private Sub cmdExit_Click()
ActiveWorkbook.Close
End Sub

-------------------

--
cedtech2
-----------------------------------------------------------------------
cedtech23's Profile: http://www.excelforum.com/member.php...fo&userid=3102
View this thread: http://www.excelforum.com/showthread.php?threadid=56333

 
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
Viewing a worksheet within a Userform chris_waldie Excel Programming 5 January 30th 06 07:52 PM
UserForm for each Worksheet prepotency[_15_] Excel Programming 0 August 12th 05 05:14 PM
How do I Open A UserForm in a Worksheet Pete Woodhead Excel Programming 4 October 31st 04 10:10 PM
Data from userform to worksheet koala[_15_] Excel Programming 0 October 9th 04 08:34 AM
How can I use a worksheet while running a userform? Leo Excel Programming 4 December 17th 03 02:58 PM


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