Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy from Cell Ref to TextBox Ref

Status
Not open for further replies.

tudor30

Technical User
Jan 7, 2004
49
US
I apprecaite the assistance...

How would I copy:
From Workbook A, Sheet 1, Cell A1

To: Text Box 1 on Sheet 1 of another workbook

Thanks for suggestions,
John
 
Hi,

There's a DIFFERENCE between COPY and ASSIGNING a value. THis is a value assignment...
Code:
dim ws1 as worksheet, ws2 as worksheet
set ws1 = workbooks("thisname.xls").Sheet1
set ws2 = workbooks("thatname.xls").Sheet1
ws2.textbox1.text = ws1.[A1]
...
set ws2 = nothing
set ws1 = nothing
:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top