Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2007, 09:55 AM
Authorized User
 
Join Date: Jun 2007
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default MsgBox on Open

I am trying to workout if its possible to have a MsgBox pop up when the spreadsheet opens, I know that can be done, but I am trying to get it to tell me this...

Column A I have a list of Engineers
Column B I have an expiry date for his Works Certificate.

I want to try and have my MsgBox pop up on Open and tell me that Engineer X has an Out of Date Certificate. I am trying to get it to do this a month earlier than the date, and give the user the option to change it now or cancel for later, I then am trying to have the same MsgBox if the user cancels it everytime the user opens the spreadsheet till thedate is changed.

How is this possible to do?


 
Old August 17th, 2007, 08:42 AM
Friend of Wrox
 
Join Date: Feb 2007
Posts: 163
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Go into your VBA project for that workbook and open the workbook code. Use this sub:

Private Sub Workbook_Open()

'Code for workbook_Open

End Sub

Hope this helps






Similar Threads
Thread Thread Starter Forum Replies Last Post
Msgbox rwalker ASP.NET 1.x and 2.0 Application Design 28 March 20th, 2008 01:23 PM
Msgbox Help darrenb Access VBA 2 June 8th, 2007 12:53 AM
MsgBox prabodh_mishra Pro VB 6 1 December 29th, 2006 11:51 AM
msgbox Ramakrishna.G General .NET 3 September 14th, 2004 02:17 AM
Display names of open workbooks in a MsgBox rmcc Excel VBA 1 November 11th, 2003 05:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.