Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Follow up question for Tom Ogilvy - linking a text box to an external workbook

Thanks for your reply to my posting regarding, linking a text box to
an external workbook. You informed me that the destination file would
need to be opened first.

However - I still have the problem regarding linking the text box
within a userform to the external opened file.

I can easily link the text box to a cell in the same workbook as the
userform by using the following statement

Range("A5").Value = txtMyTextBox.Value

although I wish to link the input of this text box to a cell in a
worksheet of the external Excel workbook.

So whatever is typed into this text box gets dynamically entered into
the external file/sheet/cell.

Do you know how I can achieve this?

Thanks again for your help Tom.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Follow up question for Tom Ogilvy - linking a text box to an external workbook

Your example doesn't do that unless you put it in the change event. To
mimic your example

Workbooks("Book2.xls").Worksheets("Sheet9").Range( "A5").Value =
txtMyTextBox.Value

if you want to do it in userform_initialize

Private Sub Userform_Initialize()
txtMyTextBox.ControlSource = _
Workbooks("Book2.xls").Worksheets("Sheet9"). _
Range("A5").Address(0,0,xlA1,True)
End sub

Or you can hand enter the reference in the controlsource property.
'[Book2.xls]Sheet9'!A5
--
Regards,
Tom Ogilvy

JENNA wrote in message
om...
Thanks for your reply to my posting regarding, linking a text box to
an external workbook. You informed me that the destination file would
need to be opened first.

However - I still have the problem regarding linking the text box
within a userform to the external opened file.

I can easily link the text box to a cell in the same workbook as the
userform by using the following statement

Range("A5").Value = txtMyTextBox.Value

although I wish to link the input of this text box to a cell in a
worksheet of the external Excel workbook.

So whatever is typed into this text box gets dynamically entered into
the external file/sheet/cell.

Do you know how I can achieve this?

Thanks again for your help Tom.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Follow up question for Tom Ogilvy - linking a text box to an external workbook

Thanks Tom - greatly appreciated.

Regards Jenna
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
variable substitution in a formula linking to external workbook my Excel Discussion (Misc queries) 2 August 29th 07 03:05 PM
Linking text to external workbook's sheet aposatsk Excel Discussion (Misc queries) 0 August 22nd 06 02:33 PM
Linking a text box to an external Excel workbook JENNA Excel Programming 1 January 16th 04 12:54 PM
Linking a text box to an external workbook JENNA Excel Programming 0 January 15th 04 06:36 AM
Tom Ogilvy - Request for follow-up on previous help offered JMay Excel Programming 1 November 6th 03 04:32 AM


All times are GMT +1. The time now is 02:29 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"