Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Don't Show Msg Box if file ext is .xls

I have a message box that opens when my spreadsheet is opened asking if it is
a new file. If they click yes, a user form comes up with selections. The file
is in Excel 2003 and is a template(the folder it is located in has special
privilages which allows you to open it without it being opened as a workbook,
so it is still a template and can be saved as a template without doing save
as template). I would like the message box and form to not appear and go
directly to sheet1 if the file has already been set up and saved as a .xls
file. Thank you for your assistance.

Tim Peter
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Don't Show Msg Box if file ext is .xls

I figured it out:


Private Sub Workbook_Open()
If ActiveWorkbook.FileFormat = xlTemplate Then
Call QACompiled
Dim intresponse As Integer
intresponse = MsgBox("Is This a New Cold Box Order?", vbYesNo, "New File?")
If intresponse = vbYes Then
Customer.Show
Sheets("70 - 20 form").Select
Else
Sheets("70 - 20 form").Select
End If
End If
Sheets("70 - 20 form").Select
End Sub



"tpeter" wrote:

I have a message box that opens when my spreadsheet is opened asking if it is
a new file. If they click yes, a user form comes up with selections. The file
is in Excel 2003 and is a template(the folder it is located in has special
privilages which allows you to open it without it being opened as a workbook,
so it is still a template and can be saved as a template without doing save
as template). I would like the message box and form to not appear and go
directly to sheet1 if the file has already been set up and saved as a .xls
file. Thank you for your assistance.

Tim Peter

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
show ink on an excel file. Jean Excel Worksheet Functions 3 December 4th 09 10:08 PM
Vista Office 2003 File Open Window @details will only show file n. amb@HKD Excel Discussion (Misc queries) 1 September 3rd 09 01:03 AM
Unable to open excel file and when view the file size show as 1 KB Kamal Siva Excel Discussion (Misc queries) 1 March 7th 06 03:23 AM
in a excel file, how to make a menu item for the .xls file that when clicked on it runs myform.show? example plz Daniel Excel Worksheet Functions 1 July 7th 05 03:52 AM
The 'Recently used file list' does not show up under the 'File' menu. David F Excel Worksheet Functions 4 June 6th 05 07:43 AM


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