Post Project
  • Search
    • Buyers can
    • Search offers to buy now
    • Search freelancers to request a proposal
    • Freelancers can
    • Search projects to quote on
  • How it works
  • Log in
  • Sign up
  • Freelancer?
Browse by Category
    Technology & ProgrammingWriting & TranslationDesignDigital MarketingVideo, Photo & ImageBusinessMusic & AudioMarketing, Branding & SalesSocial Media

    VBA update links code

    - or -

    Post a project like this
    30/06/2016
    $$
    • Posted: 7 years ago
    • Proposals: 9
    • Remote
    • #1173386
    • Expired
    Tejas T.
    Tejas T.
    Excel, Word & Powerpoint VBA Expert
    India Pune
    Pulkit G.
    Pulkit G.
    Business Analyst
    India New Delhi
    Brian G.
    Brian G.
    Business Analyst, VBA Programmer, Microsoft Excel Expert, Proofreader, Qlik Sense Data Architect, Qlik Sense Visualisations Expert
    Top Endorsed
    United Kingdom Glasgow
    Ubair U.
    Ubair U.
    Tableau | Power BI| Excel |VBA/Macro Expert
    India Delhi
    TRUEBI LLC
    TRUEBI LLC
    Business Intelligence Consultant and Computer Programmer
    United States Fort Lauderdale
    Nagaratna Vijay H.
    Nagaratna Vijay H.
    Excel, Access, SQL, VBA Developer, Technical Writer
    United Kingdom Bristol
    Dave S.
    Dave S.
    Microsoft Office Developer
    Australia Melbourne
    Prasad S.
    Prasad S.
    Microsoft Excel spreadsheet, Outlook, Word, Powerpoint VBA macro Developer
    Top Endorsed
    United States Bay Minette
    Lotus D.
    Lotus D.
    Software developer having 13 years of exp in Lotus notes, VBA
    Singapore Singapore
    3527602807386176831050712107920511776081231106123738384610
    Tejas T.
    Pulkit G.Brian G.Ubair U.TRUEBI LLC + 4 others have already sent a proposal.
    • 0
    • 0

    Description

    Experience Level: Intermediate
    General information for the business: Need VBA code to update links from other workbooks open on other computers from a shared drive
    Kind of development: Customization of existing program
    Description of every module: Workbook 1 has information in it and auto saves every 1.5 mins and is always running on computer 1

    workbook2 needs some information from workbook 1 and needs to update from workbook 1 every 1.5 mins, workbook 2 is on a computer 2 also
    Description of requirements/functionality: This is the current code

    Sub UpdateIt()
    ''This stops any messages popping up on the screen
    Application.DisplayAlerts = False


    ''This updates all the links in the workbook
    ActiveWorkbook.UpdateLink Name:=ThisWorkbook.LinkSources, Type:=xlExcelLinks


    ''This allows Excel to show any other messages again
    Application.DisplayAlerts = True


    ''The time feature is used again and after 5 minutes the code will call itself and start over
    Application.OnTime Now + TimeValue("00:01:30"), "UpdateIt"
    End Sub

    The code runs fine if the workbook where the information is coming from is closed.
    However when the workbook is open (even if on the same computer), i get a debugging error

    When the updateIt sub is run I get a run-time error `1004`
    Method`UpdateLink` of object`_Workbook`failed


    The code highlighted when the error happens is

    ActiveWorkbook.UpdateLink Name:=ThisWorkbook.LinkSources, Type:=xlExcelLinks

    What i want to happen is the links in workbook 2 to get updated regardless if anyone else has workbook 1 open anywhere else
    Extra notes:
    Umair I.
    Umair I.
    100% (57)
    Projects Completed
    50
    Freelancers worked with
    45
    Projects awarded
    27%
    Last project
    12 Jan 2023
    United Kingdom

    Umair's other projects


    • Need someone to setup facebook pixel/instagram pixel
      $29

    New Proposal

    Login to your account and send a proposal now to get this project.

    Log in

    Clarification Board Ask a Question

    • 31 May 2016Rodrigo B.

      What is the path of the file on the network? Usually it starts "\\" if stored on a local computer

    • 31 May 2016JM R.

      Hi!

      I've tried your code and i dont have this issue when the origin file is opened, only when is being edited in the same machine while using it, maybe want the macro to check the status before updating?

      Kind regards!

    22192093
    30/06/2016
    $$

    - or -

    Post a project like this
    Umair I.
    Umair I.
    100% (57)
    Projects Completed
    50
    Freelancers worked with
    45
    Projects awarded
    27%
    Last project
    12 Jan 2023
    United Kingdom

    Umair's other projects


    • Need someone to setup facebook pixel/instagram pixel
      $29

    Related project Searches


    debugging VBA programming language Visual Basic programming language workbook

    Product

    • About
    • Team
    • Careers

    Support

    • How it works
    • Trust & Safety
    • Help Centre

    Discover

    • GuidesStoriesNews

    Resources

    • Customer Stories
    • Business Cost Calculator
    • Startup Cities

    Browse

    • Freelance Services
    • Freelance Services By Country
    • Freelance Skills
    • Terms
    • Privacy
    • Sitemap
    • Company Details
    • © 2023 People Per Hour Ltd
    We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
    Cookie Settings
    Accept All Cookies