Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Sharing Variable Values Between Workbooks??? Any ideas?

I think you might need to be more specific about the problem you have.

The simple answer is something like =
=[Book1]Sheet1!$A$1
which (apart from typing)is achieved by putting an = sign into the
target cell, select the cell in the other workbook, press Enter.

Regards
BrianB
=================================================




"Rees" wrote in message ...
wow, having problems finding an answer to this problem.
Does anyone know if it can be done?

Any help greatly appreciated.

Rees

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Sharing Variable Values Between Workbooks??? Any ideas?

pass it/them using the arguments for the sub in workbookB.

Public SubInB(A, B)
msgbox A & " - " & B
End Sub

in workbookA

Sub Test1()
C = ThisWorkbook.Name
D = 10000
Application.run "WorkbooksB.xls!SubInB", C, D
End Sub

--
Regards,
Tom Ogilvy


Rees Macleod wrote in message
...

Hi Brian,

Thanks for the reply. What I mean is actually passing a variable from
VBA. In other words, I want to pass say, variable1 and variable2 from a
Sub running in workbookA.xls to another Sub waiting in workbookB.xls, so
I can continue working with variable1 and variable2's values that were
established in workbookA.xls


Thanks again,

Rees


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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
SHARING Workbooks peyman Excel Discussion (Misc queries) 1 August 25th 09 05:05 PM
sharing workbooks peyman Excel Discussion (Misc queries) 4 August 10th 09 05:44 PM
Sharing Workbooks Tina Marie Excel Discussion (Misc queries) 0 March 17th 08 04:27 PM
sharing workbooks valrom06 Setting up and Configuration of Excel 1 October 21st 07 08:00 PM
Sharing workbooks Jo Davis Excel Discussion (Misc queries) 2 September 11th 06 03:54 PM


All times are GMT +1. The time now is 02:39 PM.

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"