+ Reply to Thread
Results 1 to 2 of 2

Automatically Open a Book when a specific book is opened

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Automatically Open a Book when a specific book is opened

    I am currently using a macro to automatically open a folder when my book initially opens.

    Can I instead direct it to open a specific book?

    Here is the code that I am using.

    Please Login or Register  to view this content.
    Any help would be appreciated.

    Thank you

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Automatically Open a Book when a specific book is opened

    If you need to do something with it in VBA, then you can then refer to it as wb if you open it like this:
    Please Login or Register  to view this content.
    otherwise:
    Please Login or Register  to view this content.
    Replace with the full path to your workbook


    If you declare a constant for the workbook path and name
    Please Login or Register  to view this content.
    Last edited by kev_; 02-25-2018 at 11:58 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

+ 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. Macro to copy Specific cells data coped from one excel book to Another excel book
    By sathyaanil37 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2017, 05:38 PM
  2. Open Closed Book, carry out a VLookup and then put all entries into blank book
    By AChatwin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2015, 03:17 AM
  3. Macro to look at other opened Excel book
    By stevetothink in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2013, 02:19 PM
  4. Hide sheets when book is opened
    By Mark Dullingham in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2006, 09:20 PM
  5. [SOLVED] Open book, check for macros, close book
    By CLR in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-31-2005, 02:06 PM
  6. Strange error if another Excel book is opened
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2005, 12:06 PM
  7. [SOLVED] how to make a macro and run in every excel book that opened?
    By wayan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2005, 05:06 AM

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