PC Review


Reply
Thread Tools Rate Thread

Copy text from cell and paste it in a separate text box (contents tobe linked)

 
 
andreashermle
Guest
Posts: n/a
 
      12th Dec 2009
Dear Experts:

With some cells in a colum selected (say 10 selected cells in a
column: contiguous range) I would like a macro to copy the contents of
these cells and paste the contents of each cell in separate text
field.

Now here it comes. The pasted contents in the text field should be
linked to the cell contents, i.e. whenever the cell's contents is
changed, the contents of the text field should reflect this. Is this
feasible?


Help is much appreciated. Thank you very much in advance.


Regards, Andreas


 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      12th Dec 2009

Again, Detail and before/after examples.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"andreashermle" <(E-Mail Removed)> wrote in message
news:86fb876c-5394-40fc-9444-(E-Mail Removed)...
> Dear Experts:
>
> With some cells in a colum selected (say 10 selected cells in a
> column: contiguous range) I would like a macro to copy the contents of
> these cells and paste the contents of each cell in separate text
> field.
>
> Now here it comes. The pasted contents in the text field should be
> linked to the cell contents, i.e. whenever the cell's contents is
> changed, the contents of the text field should reflect this. Is this
> feasible?
>
>
> Help is much appreciated. Thank you very much in advance.
>
>
> Regards, Andreas
>
>


 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      12th Dec 2009
What does "text field" mean to you... other cells in your worksheet or
TextBox'es? If TextBox'es, where are they... on a worksheet or on a
UserForm? If on a worksheet, which toolbar did you get them from... the
Forms toolbar or the Control Toolbox toolbar?

--
Rick (MVP - Excel)


"andreashermle" <(E-Mail Removed)> wrote in message
news:86fb876c-5394-40fc-9444-(E-Mail Removed)...
> Dear Experts:
>
> With some cells in a colum selected (say 10 selected cells in a
> column: contiguous range) I would like a macro to copy the contents of
> these cells and paste the contents of each cell in separate text
> field.
>
> Now here it comes. The pasted contents in the text field should be
> linked to the cell contents, i.e. whenever the cell's contents is
> changed, the contents of the text field should reflect this. Is this
> feasible?
>
>
> Help is much appreciated. Thank you very much in advance.
>
>
> Regards, Andreas
>
>


 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      12th Dec 2009
> If on a worksheet, which toolbar did you get them from...
> the Forms toolbar or the Control Toolbox toolbar?


That last question should have read this way...

If on a worksheet, which toolbar did you get them from... the **Drawing**
toolbar or the Control Toolbox toolbar?

--
Rick (MVP - Excel)


"Rick Rothstein" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> What does "text field" mean to you... other cells in your worksheet or
> TextBox'es? If TextBox'es, where are they... on a worksheet or on a
> UserForm? If on a worksheet, which toolbar did you get them from... the
> Forms toolbar or the Control Toolbox toolbar?
>
> --
> Rick (MVP - Excel)
>
>
> "andreashermle" <(E-Mail Removed)> wrote in message
> news:86fb876c-5394-40fc-9444-(E-Mail Removed)...
>> Dear Experts:
>>
>> With some cells in a colum selected (say 10 selected cells in a
>> column: contiguous range) I would like a macro to copy the contents of
>> these cells and paste the contents of each cell in separate text
>> field.
>>
>> Now here it comes. The pasted contents in the text field should be
>> linked to the cell contents, i.e. whenever the cell's contents is
>> changed, the contents of the text field should reflect this. Is this
>> feasible?
>>
>>
>> Help is much appreciated. Thank you very much in advance.
>>
>>
>> Regards, Andreas
>>
>>

>


 
Reply With Quote
 
andreashermle
Guest
Posts: n/a
 
      13th Dec 2009
On Dec 12, 6:17*pm, "Rick Rothstein"
<rick.newsNO.S...@NO.SPAMverizon.net> wrote:
> > If on a worksheet, which toolbar did you get them from...
> > the Forms toolbar or the Control Toolbox toolbar?

>
> That last question should have read this way...
>
> If on a worksheet, which toolbar did you get them from... the **Drawing**
> toolbar or the Control Toolbox toolbar?
>
> --
> Rick (MVP - Excel)
>
> "Rick Rothstein" <rick.newsNO.S...@NO.SPAMverizon.net> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > What does "text field" mean to you... other cells in your worksheet or
> > TextBox'es? If TextBox'es, where are they... on a worksheet or on a
> > UserForm? If on a worksheet, which toolbar did you get them from... the
> > Forms toolbar or the Control Toolbox toolbar?

>
> > --
> > Rick (MVP - Excel)

>
> > "andreashermle" <andreas.her...@gmx.de> wrote in message
> >news:86fb876c-5394-40fc-9444-(E-Mail Removed)....
> >> Dear Experts:

>
> >> With some cells *in a colum selected (say 10 selected cells in a
> >> column: contiguous range) I would like a macro to copy the contents of
> >> these cells and paste the contents of each cell in separate text
> >> field.

>
> >> Now here it comes. The pasted contents in the text field should be
> >> linked to the cell contents, i.e. whenever the cell's contents is
> >> changed, the contents of the text field should reflect this. Is this
> >> feasible?

>
> >> Help is much appreciated. Thank you very much in advance.

>
> >> Regards, Andreas- Hide quoted text -

>
> - Show quoted text -


Dear Rick,

thank you for your swift answer.

what a mishap from my side. Sorry about that. I meant "text box".
There is of course no text field in Excel.

Regards, Andreas
 
Reply With Quote
 
andreashermle
Guest
Posts: n/a
 
      13th Dec 2009
On Dec 13, 1:29*am, andreashermle <andreas.her...@gmx.de> wrote:
> On Dec 12, 6:17*pm, "Rick Rothstein"
>
>
>
>
>
> <rick.newsNO.S...@NO.SPAMverizon.net> wrote:
> > > If on a worksheet, which toolbar did you get them from...
> > > the Forms toolbar or the Control Toolbox toolbar?

>
> > That last question should have read this way...

>
> > If on a worksheet, which toolbar did you get them from... the **Drawing**
> > toolbar or the Control Toolbox toolbar?

>
> > --
> > Rick (MVP - Excel)

>
> > "Rick Rothstein" <rick.newsNO.S...@NO.SPAMverizon.net> wrote in message

>
> >news:(E-Mail Removed)...

>
> > > What does "text field" mean to you... other cells in your worksheet or
> > > TextBox'es? If TextBox'es, where are they... on a worksheet or on a
> > > UserForm? If on a worksheet, which toolbar did you get them from... the
> > > Forms toolbar or the Control Toolbox toolbar?

>
> > > --
> > > Rick (MVP - Excel)

>
> > > "andreashermle" <andreas.her...@gmx.de> wrote in message
> > >news:86fb876c-5394-40fc-9444-(E-Mail Removed)....
> > >> Dear Experts:

>
> > >> With some cells *in a colum selected (say 10 selected cells in a
> > >> column: contiguous range) I would like a macro to copy the contents of
> > >> these cells and paste the contents of each cell in separate text
> > >> field.

>
> > >> Now here it comes. The pasted contents in the text field should be
> > >> linked to the cell contents, i.e. whenever the cell's contents is
> > >> changed, the contents of the text field should reflect this. Is this
> > >> feasible?

>
> > >> Help is much appreciated. Thank you very much in advance.

>
> > >> Regards, Andreas- Hide quoted text -

>
> > - Show quoted text -

>
> Dear Rick,
>
> thank you for your swift answer.
>
> what a mishap from my side. Sorry about that. I meant "text box".
> There is of course no text field in Excel.
>
> Regards, Andreas- Hide quoted text -
>
> - Show quoted text -



Rick,

I guess I need to be more exact. It is a text box that is inserted in
Excel 2007 by selecting "Insert"-"Shapes"-"Text box"

Regards, Andreas
 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      13th Dec 2009
See if this helps. It is using a table with the name of the shape in col a
and the text in col B


Sub NameShapes()
Sheets("yoursheetnamehere").Select
For Each c In [setup!a4:a15]
ActiveSheet.Shapes(c).TextFrame. _
Characters.Text = c.Offset(0, 1)
Next c
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"andreashermle" <(E-Mail Removed)> wrote in message
news:86fb876c-5394-40fc-9444-(E-Mail Removed)...
> Dear Experts:
>
> With some cells in a colum selected (say 10 selected cells in a
> column: contiguous range) I would like a macro to copy the contents of
> these cells and paste the contents of each cell in separate text
> field.
>
> Now here it comes. The pasted contents in the text field should be
> linked to the cell contents, i.e. whenever the cell's contents is
> changed, the contents of the text field should reflect this. Is this
> feasible?
>
>
> Help is much appreciated. Thank you very much in advance.
>
>
> Regards, Andreas
>
>


 
Reply With Quote
 
andreashermle
Guest
Posts: n/a
 
      13th Dec 2009
On Dec 13, 2:40*pm, "Don Guillett" <dguille...@austin.rr.com> wrote:
> See if this helps. It is using a table with the name of the shape in col a
> and the text in col B
>
> Sub NameShapes()
> Sheets("yoursheetnamehere").Select
> For Each c In [setup!a4:a15]
> *ActiveSheet.Shapes(c).TextFrame. _
> *Characters.Text = c.Offset(0, 1)
> Next c
> End Sub
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> dguille...@austin.rr.com"andreashermle" <andreas.her...@gmx.de> wrote in message
>
> news:86fb876c-5394-40fc-9444-(E-Mail Removed)...
>
>
>
> > Dear Experts:

>
> > With some cells *in a colum selected (say 10 selected cells in a
> > column: contiguous range) I would like a macro to copy the contents of
> > these cells and paste the contents of each cell in separate text
> > field.

>
> > Now here it comes. The pasted contents in the text field should be
> > linked to the cell contents, i.e. whenever the cell's contents is
> > changed, the contents of the text field should reflect this. Is this
> > feasible?

>
> > Help is much appreciated. Thank you very much in advance.

>
> > Regards, Andreas- Hide quoted text -

>
> - Show quoted text -


Hi Don,

thank you very much for your terrific help. I am afraid to tell you
that your macro throws error messages. I take from your statements
that I have not been exact in stating my requirements. I will
endeavour to do so. I try to keep it quite simple:

Example (Excel 2007):
Sheet 1 contains two cells with data entered:

A1: Mary
A2: John

With these two cells selected I would like a macro to create two
linked text boxes (text box to be created from "Insert"-"Shapes"-"Text
Box"). The text boxes that got created by that macro have got the
following cell references: = A1 and = A2, respectively (to be seen in
the formula bar when the respective text box is selected!).

Help is much appreciated. Thank you very much in advance. Regards,
Andreas
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy cell contents, then paste into the same cell with other text. bluenote31 Microsoft Excel Misc 6 9th Feb 2010 09:18 PM
Copy contents of a cell and paste it into text field andreashermle Microsoft Excel Programming 1 12th Dec 2009 01:46 PM
select text in cell based on text from another cell, paste the text at the begining of a thrid cell, etc... jsd219 Microsoft Excel Programming 0 19th Oct 2006 05:04 PM
How do I copy the contents of a range of text cells and paste into one cell? davfin Microsoft Excel Misc 7 4th Jul 2006 08:16 AM
Open multiple text files and paste contents to single cell bwalvoord@valuemedical.com Microsoft Excel Programming 1 19th Oct 2005 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:57 PM.