Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Open workbook and pass info

Hello,
I an opening a file. and wondering if I can pass info to the workbook open?
so given this example:

My code:
Set objWB = Workbooks.Open("C:\foo\foo2\bla.xlt")

bla.xlt
Private Sub Workbook_Open()
End Sub

I would like to have some information right away in the workbook open.
is there a way to pass it in right away?
thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Open workbook and pass info

application.stausbar = "BlahBlahBlah"
Set objWB = Workbooks.Open("C:\foo\foo2\bla.xlt")

And then:
Private Sub Workbook_Open()
msgbox application.statusbar
End Sub

could work

"greg" wrote:

Hello,
I an opening a file. and wondering if I can pass info to the workbook open?
so given this example:

My code:
Set objWB = Workbooks.Open("C:\foo\foo2\bla.xlt")

bla.xlt
Private Sub Workbook_Open()
End Sub

I would like to have some information right away in the workbook open.
is there a way to pass it in right away?
thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Open workbook and pass info

thanks,
Seems to work on my first test.


"Sam Wilson" wrote in message
...
application.stausbar = "BlahBlahBlah"
Set objWB = Workbooks.Open("C:\foo\foo2\bla.xlt")

And then:
Private Sub Workbook_Open()
msgbox application.statusbar
End Sub

could work

"greg" wrote:

Hello,
I an opening a file. and wondering if I can pass info to the workbook
open?
so given this example:

My code:
Set objWB = Workbooks.Open("C:\foo\foo2\bla.xlt")

bla.xlt
Private Sub Workbook_Open()
End Sub

I would like to have some information right away in the workbook open.
is there a way to pass it in right away?
thanks





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Open workbook and pass info

Good news. Can you mark it right so that any other users searching for a
similar problem can find help?

Sam


"greg" wrote:

thanks,
Seems to work on my first test.


"Sam Wilson" wrote in message
...
application.stausbar = "BlahBlahBlah"
Set objWB = Workbooks.Open("C:\foo\foo2\bla.xlt")

And then:
Private Sub Workbook_Open()
msgbox application.statusbar
End Sub

could work

"greg" wrote:

Hello,
I an opening a file. and wondering if I can pass info to the workbook
open?
so given this example:

My code:
Set objWB = Workbooks.Open("C:\foo\foo2\bla.xlt")

bla.xlt
Private Sub Workbook_Open()
End Sub

I would like to have some information right away in the workbook open.
is there a way to pass it in right away?
thanks






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
Pass Command Button info J Streger Excel Programming 3 February 5th 10 08:51 PM
Get Button Info/Location in when its clicked and pass to macro [email protected] Excel Programming 2 July 24th 07 11:19 PM
Get Button Info/Location in when its clicked and pass to macro [email protected] Excel Programming 0 July 24th 07 10:23 PM
Pass Info Between Macros (Re-Visited) Rob Excel Programming 4 August 31st 06 07:57 PM
Using Multiple User Forms to pass info from one to the other Neal Excel Programming 2 December 14th 04 12:29 AM


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