+ Reply to Thread
Results 1 to 2 of 2

EXCEL VBA - Assigning a MsgBox in BeforeSave to many Workbooks

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    1

    EXCEL VBA - Assigning a MsgBox in BeforeSave to many Workbooks

    I have 2000 pcs workbooks created from a template in Excel 2002 that had touch (tpwiz) recording in the database and it was OK for the change to EXCEL 2010. I converted it to each of them in the application of any amendments quite add up to the base (it happens often).
    How VBA code to assign to the current "open) workbooks for all 2000psc - following code (which displays the message) (I might add that the opening of 50pcs sheet 40 times this no problem):

    Please Login or Register  to view this content.
    Last edited by turandot; 09-19-2013 at 07:58 AM.

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: EXCEL VBA - Assigning a MsgBox in BeforeSave to multiple sheets

    Private Sub Workbook_BeforeClose (Cancel As Boolean)
    Dim Re
    Answer = MsgBox ("did you read the forum rules regardig code tag", VbYesNo + vbInformation + vbDefaultButton1, "Turandot")
    If Answer = 6 Then
    MsgBox "That's good,Welcome to forum", "Turandot"
    else
    MsgBox "So just Read forum rules", "Turandot"
    End If
    End Sub
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel AutoFilter & beforeSave Problem
    By derroque in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2013, 04:10 AM
  2. [SOLVED] BeforeSave Crashes Excel
    By grey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2012, 03:08 AM
  3. [SOLVED] beforesave macro causes excel to crash
    By carrob in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-13-2012, 10:06 AM
  4. Merge multiple excels with multiple sheets in a master excel with multiple sheets
    By marchi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2012, 10:37 AM
  5. Assigning Marco to cell which brings MsgBox
    By BouncingHippo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2008, 12:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1