+ Reply to Thread
Results 1 to 7 of 7

Refresh multiple Formula Arrays in Worksheet without Control-Shift-Enter on each

  1. #1
    Registered User
    Join Date
    08-12-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Refresh multiple Formula Arrays in Worksheet without Control-Shift-Enter on each

    Hi there

    I have multiple Formula Arrays in a worksheet that I need to refresh regularly. The manual way is to control-shift-enter each array but this is getting quite tedious.

    Does anyone know some vba that I can attach to a button that will refresh all Formula Arrays in a worksheet? I have seen this before so I know it can be done but I can't remember how!

    Any help most appreciated

    Cheers

    Ramon

  2. #2
    Registered User
    Join Date
    08-12-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Refresh multiple Formula Arrays in Worksheet without Control-Shift-Enter on each

    Hi again - any takers on my question?

    Maybe its too difficult? jk - that will get a response! :P

    cheers

    Ramon

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,239

    Re: Refresh multiple Formula Arrays in Worksheet without Control-Shift-Enter on each

    What do you mean by refresh? Are you on manual calculation? If so, you would need to use the Calculate method of the range object in order to only refresh a particular set of formulas.
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Refresh multiple Formula Arrays in Worksheet without Control-Shift-Enter on each

    If you're running on Auto Calculate the formulae should refresh automatically.

    For other methods see: http://www.decisionmodels.com/calcsecretsg.htm

    (if you're running on Manual Calculation for sake of performance there's probably some scope for optimisation)

  5. #5
    Registered User
    Join Date
    08-12-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Refresh multiple Formula Arrays in Worksheet without Control-Shift-Enter on each

    Ok, thanks for the responses - very fast, much appreciated.

    My workbook is on autocalculate, however the Formula Array uses a custom vba function that downloads data from yahoo finance and returns an array of price data - this needs to be refreshed every so often - and currently I achieve that by pressing F2 within the Formula Array and hitting Control-Shift-Enter (note that Shift-F9 worksheet refresh does not work in this instance). I will try doing a range.calculate to see if this works.

    cheers

    Ramon

  6. #6
    Registered User
    Join Date
    08-12-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Refresh multiple Formula Arrays in Worksheet without Control-Shift-Enter on each

    ok, so recalling the function seems to be the way to do it, I just assigned this to a button and replicated for each array:

    Range("B5").Select
    Selection.FormulaArray = "=smfGetYahooHistory(Ticker,,,,,,,,,,)"

    Thanks for your help!

  7. #7
    Registered User
    Join Date
    12-18-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Refresh multiple Formula Arrays in Worksheet without Control-Shift-Enter on each

    Press ctrl+alt+f9

    Regards,
    Pranav C Lunavat

+ 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