+ Reply to Thread
Results 1 to 3 of 3

Open Excel file automatically on click with another excel file

  1. #1
    Registered User
    Join Date
    09-03-2014
    Location
    USA
    MS-Off Ver
    Mac 2011
    Posts
    13

    Open Excel file automatically on click with another excel file

    I have a excel workbook that I need to put on a company computer. I have protected the file that will not allow anybody to save the contents of the workbook, only use it to generate the required answers and numbers. It changes daily so there is no need to save the info.

    There is a cell in one of the worksheets that is a drop down box with Employee names. This worksheet I need to be able for anybody to change as employees come and go. . So I put the source list in another workbook, and linked it to the primary workbook. What I would like to do is have this source workbook open when you open the primary workbook, so the source list is available.

    Is there a way to make this source workbook open and close as you open and close the primary workbook.

    thanks,

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Open Excel file automatically on click with another excel file

    Hi, Big_Slick,

    you may use Workbook_Open and Workbook_BeforeClose in ThisWorkbook. Code for Workbook_Open may be like
    Please Login or Register  to view this content.
    In Workbook_BeforeClose you may use find this helpful
    Please Login or Register  to view this content.
    If itīs only one workbook you may use the commands to directly handle the workbook instead of looping.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    09-03-2014
    Location
    USA
    MS-Off Ver
    Mac 2011
    Posts
    13

    Re: Open Excel file automatically on click with another excel file

    Holger,

    Sorry for my ignorance, but I can't quite make out the code here.

    My primary workbook is called (primarybook) and the workbook I need to open is called secondarybook

    Could you please help in the code using the workbook names'

    thanks
    Last edited by Big_Slick; 09-08-2014 at 02:47 AM.

+ 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. Excel won't open the file when I double click on it
    By showboat in forum Excel General
    Replies: 2
    Last Post: 06-01-2014, 10:12 AM
  2. Replies: 0
    Last Post: 10-02-2013, 01:47 AM
  3. Replies: 1
    Last Post: 06-06-2006, 04:25 PM
  4. I want open file excel for click double mouse
    By I want open file for click double mouse in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-17-2005, 08:05 AM
  5. Why Excel file doesn't open by double click.
    By Siraj in forum Excel General
    Replies: 1
    Last Post: 02-06-2005, 10: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