Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Disable a userform after first use?

I'm not quite sure what you're doing, but if you saved your workbook as a
template (*.xlt in xl2003 and earlier), then the users would use it to create a
new workbook--not to open, edit and save as a new name.

Then you can check the path of that file:

Option Explicit
Private Sub Workbook_Open()
if me.path = "" then
'never been saved, so it's just been created
notsofast.show
end if
end sub


Double clicking on a .xlt file in windows explorer should create a new workbook.

Bishop wrote:

I have a MASTER spreadsheet that 10 people on the team open. I created a
userform and set it to open when the spreadsheet opens.

Private Sub Workbook_Open()
NotSoFast.Show
End Sub

I was under the impression that the NAME of the spreadsheet is what
triggered the userform. However, even after I change the name of the
spreadsheet it still opens my userform. What I need is for the userform to
come up ONLY when the MASTER spreadsheet is opened. Once the members of the
team "save as..." I don't want it to pop everytime they open their copy. How
can I make this happen?


--

Dave Peterson
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
Disable a userform after first use? Bishop Excel Programming 7 April 16th 09 08:28 PM
Disable Checkbox on Userform jnf40 Excel Programming 2 October 9th 07 08:40 PM
UserForm - Disable the 'x' button Jim Burton Excel Programming 11 June 30th 07 08:19 PM
Userform enable/disable Ozgur Pars[_2_] Excel Programming 1 April 10th 07 11:23 AM
Disable UserForm Objects Sean Connery via OfficeKB.com Excel Programming 1 November 11th 06 06:29 PM


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