ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to share variable values between 2 Workbooks ? (https://www.excelbanter.com/excel-programming/350873-how-share-variable-values-between-2-workbooks.html)

Yves Le Hurt

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

Tom Ogilvy

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




Norman Jones

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





All times are GMT +1. The time now is 06:13 AM.

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