Consulting

Results 1 to 2 of 2

Thread: call macro in a shared workbook

  1. #1
    VBAX Regular
    Joined
    Nov 2007
    Posts
    61
    Location

    call macro in a shared workbook

    Everything worked great until.......I have a workbook called test1.xls which contains a macro which in turn calls a macro held within my other workbook called test2.xls. Since sharing the workbook test2.xls i am unable to call the macro using test1.xls.

    The code used to call my macro is -----

    Run ("Test2.xls!SaveandClose2") 'This line worked up until I shared test2.xls


    I believe there are some limitations using shared workbooks have i found a big one or do you know of a workaround.

    Many Thanks in advance

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Check out "Features that are unavailable in shared workbooks" in Excel Help.
    You can save your code in an XLA file and load this as an Add-in. Have a look at this article
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •