+ Reply to Thread
Results 1 to 4 of 4

Focus on MsgBox

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Excel 2016 Office 365 64-Bit
    Posts
    3,419

    Focus on MsgBox

    On the code below, I'm trying to have a message box pop up when my workbook opens. It all works okay, EXCEPT if I have another workbook open when I open my target workbook. In that case, I see the first page of the target workbook, and have to click on it to get the MsgBox to appear. Is there a way to correct this behaviour?

    Please Login or Register  to view this content.
    Last edited by Mordred; 08-30-2011 at 01:06 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: Focus on MsgBox

    Maybe
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Excel 2016 Office 365 64-Bit
    Posts
    3,419

    Re: Focus on MsgBox

    Nope, that gives me a run-time error 1004 "Method 'GoTo' of object '_Application" failed

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Excel 2016 Office 365 64-Bit
    Posts
    3,419

    Re: Focus on MsgBox

    Okay, I got past the error by unprotecting sheet 1, but the behaviour of the msgbox is identical to my original configuration.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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