Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Content from Text box to Cell

Hi

Lokking for (macro) solution to copy content of Text box to Cell

Example :
From time to time content of Text box is manually changed.
Every time when macro start content of this Text box is copied in cell A1



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Content from Text box to Cell

Hi eLaCiD,

A textbox from the drawing tools collection?
'=============
Public Sub Tester()
Dim TBox As TextBox

Set TBox = ActiveSheet.TextBoxes("Text Box 1")
ActiveSheet.Range("A1").Value = TBox.Text
End Sub
'<<=============

A Controls Toolbox textbox?

Try:

Range("A1").Value = ActiveSheet.TextBox1.Text


---
Regards,
Norman


"eLaCiD" wrote in message
...
Hi

Lokking for (macro) solution to copy content of Text box to Cell

Example :
From time to time content of Text box is manually changed.
Every time when macro start content of this Text box is copied in cell A1





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Content from Text box to Cell

Thanks

When I'll know all this :)


  #4   Report Post  
Posted to microsoft.public.excel.programming
pfa pfa is offline
external usenet poster
 
Posts: 14
Default Content from Text box to Cell (follow-up question)

What if the text in the box is copied to another worksheet?

I have a tab labeled I-16 where I have a text box (text box 2). I would like
to have the text in the box copied to cell J45 on a tab named 'database'.
Both tabs are on the same workbook.

Also, the text is more than 1,024 characters long, so there may a problem
when it gets copied over to cell J45.

How can I modify the code below to perform this task?

Thanks!

"eLaCiD" wrote:

Hi

Lokking for (macro) solution to copy content of Text box to Cell

Example :
From time to time content of Text box is manually changed.
Every time when macro start content of this Text box is copied in cell A1




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
How can I test the text content of a cell catefaulkes Excel Worksheet Functions 4 March 17th 10 05:50 AM
How do I use the text content of a cell as a worksheet reference? KLE Excel Worksheet Functions 9 April 26th 09 11:51 PM
Cell content in text box in chart Munchygut Charts and Charting in Excel 2 October 12th 07 07:31 PM
How can I keep the format of cell content when I copy it to text b Garfieldkat Excel Programming 0 June 9th 05 10:04 AM
How can I copy cell content to a text box? Garfieldkat Excel Programming 2 June 9th 05 02:03 AM


All times are GMT +1. The time now is 10:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"