Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help-Copy&Paste code

I forgot to add that I already have the code to select all the tex
boxes, but what is missing is the copy-paste code....

Dim shape_names()
shape_names = Array()
n = 0

For Each ss In ActiveSheet.Shapes
If ss.TopLeftCell.Column = 5 And ss.Type = 17 Then
ReDim Preserve shape_names(n)
shape_names(n) = ss.Name
n = 1 + n
End If
Next


I have attached a template so you can see what my sheet looks like an
the end result.

In columm E there are text boxes that are created when ever new data i
entered in columm C. What I would like to do is a program that woul
search for Text boxes in columm E, and then copy and paste the dat
from columm A,C and D into each respective text box in columm E.

Can anybody help?
Regards,
B

Attachment filename: template1.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=42456
--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help-Copy&Paste code

You have already received help on this but seem to have chosen to ignore it.
Should others waste their time?

--
Regards,
Tom Ogilvy

"Bourbon " wrote in message
...
I forgot to add that I already have the code to select all the text
boxes, but what is missing is the copy-paste code....

Dim shape_names()
shape_names = Array()
n = 0

For Each ss In ActiveSheet.Shapes
If ss.TopLeftCell.Column = 5 And ss.Type = 17 Then
ReDim Preserve shape_names(n)
shape_names(n) = ss.Name
n = 1 + n
End If
Next


I have attached a template so you can see what my sheet looks like and
the end result.

In columm E there are text boxes that are created when ever new data in
entered in columm C. What I would like to do is a program that would
search for Text boxes in columm E, and then copy and paste the data
from columm A,C and D into each respective text box in columm E.

Can anybody help?
Regards,
B.

Attachment filename: template1.xls
Download attachment:

http://www.excelforum.com/attachment.php?postid=424568
---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help-Copy&Paste code

previously posted:

Sub Tester10()
Dim shape_names()
Dim tbox As TextBox
Dim tboxs As TextBoxes
n = 0
ReDim shape_names(0 To 0)
For Each tbox In ActiveSheet.TextBoxes
If tbox.TopLeftCell.Column = 5 Then
ReDim Preserve shape_names(0 To n)
shape_names(n) = tbox.Name
n = n + 1
End If
Next
Set tboxs = ActiveSheet.TextBoxes(shape_names)
tboxs.BringToFront
tboxs.Select
ActiveCell.FormulaR1C1 = "11/3/2000"
For Each tbox In tboxs
tbox.Text = "11/3/2000" & Chr(10) & ""
Next
End Sub

--
Regards,
Tom Ogilvy

"Bourbon " wrote in message
...
I forgot to add that I already have the code to select all the text
boxes, but what is missing is the copy-paste code....

Dim shape_names()
shape_names = Array()
n = 0

For Each ss In ActiveSheet.Shapes
If ss.TopLeftCell.Column = 5 And ss.Type = 17 Then
ReDim Preserve shape_names(n)
shape_names(n) = ss.Name
n = 1 + n
End If
Next


I have attached a template so you can see what my sheet looks like and
the end result.

In columm E there are text boxes that are created when ever new data in
entered in columm C. What I would like to do is a program that would
search for Text boxes in columm E, and then copy and paste the data
from columm A,C and D into each respective text box in columm E.

Can anybody help?
Regards,
B.

Attachment filename: template1.xls
Download attachment:

http://www.excelforum.com/attachment.php?postid=424568
---
Message posted from http://www.ExcelForum.com/



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
copy and paste using vb code ASU Excel Discussion (Misc queries) 1 September 10th 06 01:41 AM
copy and paste formula using vb code ASU Excel Discussion (Misc queries) 4 September 7th 06 08:56 PM
VBA-code for search,copy and paste TUNGANA KURMA RAJU Excel Discussion (Misc queries) 0 December 12th 05 12:40 PM
copy and paste code problem bigdaddy3 Excel Worksheet Functions 10 September 21st 05 05:55 PM
Need Help with Code - Copy & Paste JStone0218 Excel Programming 10 October 11th 03 04:09 PM


All times are GMT +1. The time now is 10:48 PM.

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"