+ Reply to Thread
Results 1 to 7 of 7

Macro to chose an option in a message box, like update, without just skipping it

Hybrid View

becca0903 Macro to chose an option in a... 02-11-2015, 10:43 AM
walruseggman Re: Macro to chose an option... 02-11-2015, 11:05 AM
dominicb Re: Macro to chose an option... 02-11-2015, 11:07 AM
becca0903 Re: Macro to chose an option... 02-11-2015, 11:23 AM
dominicb Re: Macro to chose an option... 02-11-2015, 01:25 PM
becca0903 Re: Macro to chose an option... 02-11-2015, 01:57 PM
dominicb Re: Macro to chose an option... 02-11-2015, 02:07 PM
  1. #1
    Registered User
    Join Date
    02-05-2015
    Location
    United States
    MS-Off Ver
    2007
    Posts
    13

    Macro to chose an option in a message box, like update, without just skipping it

    I need a macro to select an option in a message box that pops up when the file opens, that says update. Right now you have to manually click the update option before the macro will continue. I've seen where everyone uses the Application.DisplayAlerts=True and Application.DisplayAlerts=False, but I think that just skips the message box, right? I need the option to be selected so the file will update.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Macro to chose an option in a message box, like update, without just skipping it

    Why not eliminate the messagebox and just run whatever code runs when you hit the update button?

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Macro to chose an option in a message box, like update, without just skipping it

    Good afternoon becca0903

    Are you referring to the box that asks if you want to update links?

    If so, go to Data > Edit Links, Startup Prompt and select the appropriate option – it’s probably the third one down you want – and click OK.

    If it’s not this box you’re referring to, we’ll need more info.

    HTH

    DominicB

  4. #4
    Registered User
    Join Date
    02-05-2015
    Location
    United States
    MS-Off Ver
    2007
    Posts
    13

    Re: Macro to chose an option in a message box, like update, without just skipping it

    When you click the refresh macro and it opens the next file, that file automatically pulls up a message box that says update or cancel and I need it to click update before saving and closing.
    Attached Files Attached Files

  5. #5
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Macro to chose an option in a message box, like update, without just skipping it

    Hi becca0903

    You know that there are no macros in the workbook that you've uploaded don't you?

    DominicB

  6. #6
    Registered User
    Join Date
    02-05-2015
    Location
    United States
    MS-Off Ver
    2007
    Posts
    13

    Re: Macro to chose an option in a message box, like update, without just skipping it

    This one should have it. Sorry about that.
    Attached Files Attached Files

  7. #7
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Macro to chose an option in a message box, like update, without just skipping it

    Quote Originally Posted by becca0903 View Post
    This one should have it. Sorry about that.
    'fraid not.

    DominicB

+ 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. why is this skipping the second message box???
    By winwall in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-22-2014, 09:21 AM
  2. Replies: 1
    Last Post: 08-12-2014, 01:37 AM
  3. Skipping macro message/pop up
    By MartenP in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-11-2012, 02:20 PM
  4. Replies: 2
    Last Post: 08-03-2012, 05:28 PM
  5. Option to Exit Macro Via Message Box
    By kirsty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-12-2010, 11:05 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