ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   open workbook b when workbook a opened (https://www.excelbanter.com/excel-discussion-misc-queries/195674-open-workbook-b-when-workbook-opened.html)

[email protected] uk

open workbook b when workbook a opened
 


Gord Dibben

open workbook b when workbook a opened
 
Stick this code into Thisworkbook module of workbook a

Private Sub Workbook_Open()
Workbooks.Open Filename:= "C:\your path to\b.xls"
End Sub


Gord Dibben MS Excel MVP


On Mon, 21 Jul 2008 09:41:02 -0700, uk
wrote:



[email protected] uk

open workbook b when workbook a opened
 
hello i have tried this & it does not work
the name of workbook (b) is data & workbook is (ts)


"Gord Dibben" wrote:

Stick this code into Thisworkbook module of workbook a

Private Sub Workbook_Open()
Workbooks.Open Filename:= "C:\your path to\b.xls"
End Sub


Gord Dibben MS Excel MVP


On Mon, 21 Jul 2008 09:41:02 -0700, uk
wrote:




Gord Dibben

open workbook b when workbook a opened
 
Private Sub Workbook_Open()
Workbooks.Open Filename:= "C:\your path to\data.xls"
End Sub

Entered in Thisworkbook module of workbook ts


Gord

On Mon, 21 Jul 2008 23:15:00 -0700, uk
wrote:

hello i have tried this & it does not work
the name of workbook (b) is data & workbook is (ts)


"Gord Dibben" wrote:

Stick this code into Thisworkbook module of workbook a

Private Sub Workbook_Open()
Workbooks.Open Filename:= "C:\your path to\b.xls"
End Sub


Gord Dibben MS Excel MVP


On Mon, 21 Jul 2008 09:41:02 -0700,
uk
wrote:





[email protected] uk

open workbook b when workbook a opened
 
many thanks

"Gord Dibben" wrote:

Private Sub Workbook_Open()
Workbooks.Open Filename:= "C:\your path to\data.xls"
End Sub

Entered in Thisworkbook module of workbook ts


Gord

On Mon, 21 Jul 2008 23:15:00 -0700, uk
wrote:

hello i have tried this & it does not work
the name of workbook (b) is data & workbook is (ts)


"Gord Dibben" wrote:

Stick this code into Thisworkbook module of workbook a

Private Sub Workbook_Open()
Workbooks.Open Filename:= "C:\your path to\b.xls"
End Sub


Gord Dibben MS Excel MVP


On Mon, 21 Jul 2008 09:41:02 -0700,
uk
wrote:






Gord Dibben

open workbook b when workbook a opened
 
If you are still around, now that I have had my afternoon nap, I could
suggest an alternate solution without code.

Open both books and FileSave Workspace as yourname.xlw

They will now open together when you select the yourname.xlw file


Gord

On Tue, 22 Jul 2008 06:42:31 -0700, Gord Dibben <gorddibbATshawDOTca wrote:

Private Sub Workbook_Open()
Workbooks.Open Filename:= "C:\your path to\data.xls"
End Sub

Entered in Thisworkbook module of workbook ts


Gord

On Mon, 21 Jul 2008 23:15:00 -0700, uk
wrote:

hello i have tried this & it does not work
the name of workbook (b) is data & workbook is (ts)


"Gord Dibben" wrote:

Stick this code into Thisworkbook module of workbook a

Private Sub Workbook_Open()
Workbooks.Open Filename:= "C:\your path to\b.xls"
End Sub


Gord Dibben MS Excel MVP


On Mon, 21 Jul 2008 09:41:02 -0700,
uk
wrote:






All times are GMT +1. The time now is 05:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com