Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open work book


Hi,
I would like to know,how to open a workbook (micr
print.xls)automatically when i open a particular work book (micr.xls).
any code?
thanks
nowfal


--
nowfal
------------------------------------------------------------------------
nowfal's Profile: http://www.excelforum.com/member.php...o&userid=10003
View this thread: http://www.excelforum.com/showthread...hreadid=396241

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default open work book

Nowfal:

'it must be named Workbook_Open; it must be housed in the ThisWorkbook module
Sub Workbook_Open()
Workbooks.Open ("C:\xxx\xxx\MicrPrint.xls")
End Sub

Elizabeth

"nowfal" wrote:


Hi,
I would like to know,how to open a workbook (micr
print.xls)automatically when i open a particular work book (micr.xls).
any code?
thanks
nowfal


--
nowfal
------------------------------------------------------------------------
nowfal's Profile: http://www.excelforum.com/member.php...o&userid=10003
View this thread: http://www.excelforum.com/showthread...hreadid=396241


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default open work book

You can open the micrprint.xls in the Workbook open event of the micr.xls
workbook. You can access the Workbook open event from the "ThisWorkbook"
module.

For example:

Private Sub Workbook_Open()

Excel.Workbooks.Open("c:\micrprint.xls") 'Change to the correct
path here

End Sub

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


"nowfal" wrote in
message ...

Hi,
I would like to know,how to open a workbook (micr
print.xls)automatically when i open a particular work book (micr.xls).
any code?
thanks
nowfal


--
nowfal
------------------------------------------------------------------------
nowfal's Profile:
http://www.excelforum.com/member.php...o&userid=10003
View this thread: http://www.excelforum.com/showthread...hreadid=396241


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open work book


Hi,
thanks, one more question, if i want to close another workbook ho
it will be.


nowfa

--
nowfa
-----------------------------------------------------------------------
nowfal's Profile: http://www.excelforum.com/member.php...fo&userid=1000
View this thread: http://www.excelforum.com/showthread.php?threadid=39624

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
Excel 2003 - open work book useage agreement mbotfield Excel Worksheet Functions 3 September 23rd 09 04:53 PM
work book open _ event Hassan Excel Worksheet Functions 1 July 3rd 08 12:49 PM
App_change event to open all work book [email protected] Excel Discussion (Misc queries) 1 August 2nd 07 03:52 PM
I was messing arround with the VBA and now I get the macro warning when I open the work book but when... Marc New Users to Excel 2 June 6th 05 08:08 AM
open work book to current date Smeesh Excel Programming 5 April 28th 04 09:12 PM


All times are GMT +1. The time now is 06:35 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"