+ Reply to Thread
Results 1 to 14 of 14

Connected sheets not updating

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    Cambridgeshire
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Connected sheets not updating

    Hello,

    The Update Values button I mean is this:Attachment 292573 The top right button.

    How you have just described how the Log gets updated is exactly how it is updated. Because of the issues of shared workbooks, I haven't 'shared' it.

    I have changed my settings as per your instruction, then closed the workbook and reopened it to insert the code. The Macro has been created and I have inserted the specific cells needed on there (I hope this was the correct step to make!)

    I am now receiving this error, but I have no idea why.CaptureMacroError.PNG



    Apologies for the rushed response of this message. I hope it's not too hasty that it's uncomprehensable. I'm at work and have nearly finished, this is the only place I can access these files .

    Option Explicit
    Sub UpdateFromLog()
        Application.DisplayAlerts = False
        If Range("H2") = "Y" Then End
        Workbooks.Open Filename:="T:\O\Op Info\NICCI HARROW\ACCOM SUPPORT\NEW ACCOM LOG 2014.xlsx", Notify:=False
        ActiveWindow.Close
        Call OnTimeMacro
        Range("Stop") = "N"
    End Sub
    Sub OnTimeMacro()
        Application.OnTime Now + TimeValue("00:" & CStr(Range("H1")) & "00:"), "UpdateFromLog"
        
    End Sub
    Sub StopUpdate()
        Range("Stop") = "Y"
    End Sub
    Kristian
    Attached Files Attached Files
    Kristian

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Connected sheets not updating

    Hi,

    Just going out for the evening but try correcting that line to

    Application.OnTime Now + TimeValue("00:" & CStr(Range("H1")) & ":00"), "UpdateFromLog"
    note the semicolon before the last 00 rather than after.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Updating across sheets
    By Spicekiwi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2013, 07:32 PM
  2. Automatically inserting new rows in sheets or updating the sheets
    By AlexOram in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-03-2012, 07:35 AM
  3. Updating Multiple Sheets
    By Flintstone9999 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-12-2007, 10:34 PM
  4. Auto updating sheets
    By charmedcharmer in forum Excel General
    Replies: 1
    Last Post: 04-03-2007, 10:24 PM
  5. Just Updating Sheets
    By Stuie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2007, 10:38 AM

Tags for this Thread

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