Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Open Another Book

Hi,

I wolud like to make a macro that when I open a book, will
automatically open another book that I define.

Can someone help me ???

Thank you in advance

Ricardo Galveia

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Open Another Book


Private Sub Workbook_Open()
worksbooks.Open "C:\Myfiles\mybook.xls"
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Carpe Diem" wrote in message
ups.com...
Hi,

I wolud like to make a macro that when I open a book, will
automatically open another book that I define.

Can someone help me ???

Thank you in advance

Ricardo Galveia



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Open Another Book

That should be

Private Sub Workbook_Open()
Workbooks.Open "C:\Myfiles\mybook.xls"
End Sub



--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Bob Phillips" wrote in message
...

Private Sub Workbook_Open()
worksbooks.Open "C:\Myfiles\mybook.xls"
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Carpe Diem" wrote in message
ups.com...
Hi,

I wolud like to make a macro that when I open a book, will
automatically open another book that I define.

Can someone help me ???

Thank you in advance

Ricardo Galveia





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open new book (workbook) with other ahoc Excel Discussion (Misc queries) 1 July 20th 09 02:33 AM
Excel does not open Book Alfonso Torres Excel Discussion (Misc queries) 8 October 8th 07 10:51 PM
Book.xlt in doesn't open as default Laura_lsmarketing Excel Discussion (Misc queries) 9 July 3rd 06 09:58 PM
personal book will not open Tom Ogilvy Excel Programming 1 March 16th 06 08:31 PM
Open book, check for macros, close book Robin Hammond[_2_] Excel Programming 5 March 31st 05 06:09 PM


All times are GMT +1. The time now is 08:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"