Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to share variable values between 2 Workbooks ?

Hi,
Does anyone know how to do this ?
Thanks in advance for your help.

Yves Le Hurt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to share variable values between 2 Workbooks ?

Use one workbook as the source of the varialble value. Link a cell/cells in
the second workbook to the cell/cells in the first workbook with these
values.



--
Regards,
Tom Ogilvy

"Yves Le Hurt" <Yves Le wrote in message
...
Hi,
Does anyone know how to do this ?
Thanks in advance for your help.

Yves Le Hurt



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How to share variable values between 2 Workbooks ?

Hi Yves,

Try something like:

'=============
Public Sub Tester0401()
Dim myVar

myVar = 100

Application.Run "'Book2.xls'!myMacroName", myVar

End Sub
'<<=============


---
Regards,
Norman


"Yves Le Hurt" <Yves Le wrote in message
...
Hi,
Does anyone know how to do this ?
Thanks in advance for your help.

Yves Le Hurt



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
share and merge workbooks excel newbie Excel Discussion (Misc queries) 0 February 9th 10 09:41 PM
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Daniel Excel Worksheet Functions 1 July 9th 05 03:05 AM
Can 2 workbooks share data in Name Fields? Mike R. Excel Programming 1 January 7th 05 05:45 AM
Sharing variable values between open workbooks? Julian Milano[_2_] Excel Programming 0 January 29th 04 01:13 AM
Sharing Variable Values Between Workbooks??? Any ideas? BrianB Excel Programming 1 August 16th 03 12:11 AM


All times are GMT +1. The time now is 10:07 AM.

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

About Us

"It's about Microsoft Excel"