LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default User Forms


Donna C;7058947 Wrote:
On workbook open I have a message box telling the user
what workbook they are in.
I have two questions: When they click "ok" on the message box
I want the user form to open.
The user form is basic with Yes/No boxes.
How do I code for:
When yes is clicked insert new worksheet and run module 1,
when no is clicked simply open the workbook as is for the user to
use??
Thanks in advance
Donna C.Donna it's done soemthing like this

Code:
--------------------
If MsgBox("you are in " & ActiveWorkbook.Name & " Would you like to proceed?", vbYesNo, "Workbook Confirmation") = vbYes Then
Sheets.Add
Call '''''''ENTER YOUR MACRO NAME AFTER CALL HERE!
End If
--------------------
Regards,
SImon


--
Simon Lloyd
 
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
User forms help mav93[_6_] Excel Programming 2 March 2nd 06 08:47 PM
user forms Runner77 Excel Discussion (Misc queries) 0 January 12th 06 04:31 AM
user forms steveshos Excel Programming 2 December 19th 05 09:12 PM
User Forms ajocius[_41_] Excel Programming 2 November 20th 05 10:10 PM
User forms in VBA Dick Kusleika Excel Programming 0 September 29th 03 05:55 PM


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