+ Reply to Thread
Results 1 to 3 of 3

Set Refresh Time on cell value

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Set Refresh Time on cell value

    I googled how to auto-refresh a web query (i did search the forum but couldn't find anything ) quicker than the minimum one minute that excel seems to let you set it to and i found the following code...

    Please Login or Register  to view this content.
    I have done the above but what i want to ask is can i alter the time value as highlighted at the bottom of the code by a given cell value. Probably an easy one this but i am a bit of a numpty!!

    Just to clarify it's the seconds of the time value i want change.

    Thanks,
    Adam.
    Last edited by adam2308; 07-18-2009 at 06:05 PM. Reason: Adding info

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Set Refresh Time on cell value

    There is no reason why you can't put the time in a cell. I would suggest using numbers, not dates/times in your sheet, as they are easier to work with.

    the following will work if you want time

    Just substitute this line

    RunWhen = Now + TimeValue("00:00:30")

    with this line

    RunWhen = Now + Range("a1")

    and where you have a time in the format 00:00:00 in cell A1.

    I think this will work

  3. #3
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Re: Set Refresh Time on cell value

    I can't get that to work.

    I've attached a copy of my spreadsheet as an example.
    Attached Files Attached Files

+ 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