Click here to Skip to main content
15,883,535 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
data5 is the text box in the work book filename
and I want to set it to lastTextbox
then take that and put it a file called clients at cell(i,3)


lastTextbox = Workbooks(fileName).data5.Value
Workbooks(clients).Worksheets(1).Cells(i, 3).Value = lastTextbox


btw this is being done in excel and everything is in a different workbook

I have tried everything I can think of weather it is the .range method or
focus(). but there is always a problem getting the actual text form the text box in a different document. can someone plz help me
Posted
Updated 16-Feb-15 10:47am
v3
Comments
CHill60 3-Feb-15 20:05pm    
What have you tried so far?
Member 11424435 5-Feb-15 12:14pm    
data5.Focus() = lastTextbox
lastTextbox = InStr(data5.Text, Search)
Workbooks(fileName).Worksheets(1).data5.Focus()
aravinth santosh 4-Feb-15 6:07am    
Use Range.copy method
Member 11424435 5-Feb-15 12:30pm    
I don't know how to use the range.copy method

could you give me an example

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900