+ Reply to Thread
Results 1 to 9 of 9

If Macro finds no external link supress Update Value Prompt

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    35

    If Macro finds no external link supress Update Value Prompt

    I have a macro that is updating formulas in a rather large spreadsheet. It updates the formulas every month to pull from a different raw data file with similar names, only the month has changed. The issue is, if the user puts in a name wrong, I get a prompt to find the file for every value in the spreadsheet. It takes forever to click cancel on all of them just to re-do the macro. Any way around this? Thanks in advance.
    Last edited by dieseldogpi; 09-27-2010 at 09:14 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: If Macro finds no external link supress Update Value Prompt

    How does the user enter the name? Is it an InputBox or a cell on the sheet?

  3. #3
    Registered User
    Join Date
    09-23-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: If Macro finds no external link supress Update Value Prompt

    Yes, the data is entered through an input box. I'm just worried if the user enters in the wrong month, or even miss-spells the month, that they will have to click cancel 350 times in a row.

  4. #4
    Registered User
    Join Date
    09-23-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: If Macro finds no external link supress Update Value Prompt

    Nobody with help on this one?

  5. #5
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: If Macro finds no external link supress Update Value Prompt

    Without seeing your code it's very hard to know exactly what you're doing, but maybe something along the lines of the below...

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-23-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: If Macro finds no external link supress Update Value Prompt

    Sorry, I guess what I have in there could have helped.
    Please Login or Register  to view this content.
    The macro itself is just searching through formulas to change the year and month in the formula so the spreadsheet referenced will change. Now if the user unputs anything incorrectly, for each formula, a box to search for the named spreadsheet comes up. Some of the files I want to use this on have 100's of instances, so this would get very irritating. Thanks again for the help.
    Last edited by romperstomper; 09-27-2010 at 09:02 AM. Reason: code tags

  7. #7
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: If Macro finds no external link supress Update Value Prompt

    Try using:
    Please Login or Register  to view this content.
    before the Replace lines and set back to True again afterwards.

    Note: when posting code on the forum, you must use code tags. I have added them for you on this occasion, but please make sure you use them in future.
    Remember what the dormouse said
    Feed your head

  8. #8
    Registered User
    Join Date
    09-23-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: If Macro finds no external link supress Update Value Prompt

    That is exactly what I needed. Works perfectly...thanks. I will use the code tags from here on out as well. Thanks again!

  9. #9
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: If Macro finds no external link supress Update Value Prompt

    Much obliged.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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