Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel VBA - Text Boxes
Hi,
I am trying to copy all the contents of some text boxes that appear on a worksheet on to a seperate worksheet but without much luck. I am trying to use a for each loop but cannot get it to work when I need it to refernece the text boxes individually. Can anyone help me? Many thanks KD |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel VBA - Text Boxes
for ActiveX textboxes
dim tbox as MSforms.Textbox dim obj as OleObject for each obj in Activesheet.OleObjects if typeof obj.Object is MSforms.Textbox then set tbox = obj.Object ' now work with your textbox end if Next for Textboxes from the drawing toolbar dim tbox as Textbox for each tbox in Activesheet.Textboxes ' now work with your textboxes Next -- Regards, Tom Ogilvy "KD" wrote in message ... Hi, I am trying to copy all the contents of some text boxes that appear on a worksheet on to a seperate worksheet but without much luck. I am trying to use a for each loop but cannot get it to work when I need it to refernece the text boxes individually. Can anyone help me? Many thanks KD |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Default font for pasted text in text boxes - Excel 2007 | Excel Discussion (Misc queries) | |||
User Form Text Boxes - Copy format of text boxes | Excel Discussion (Misc queries) | |||
Text Boxes Do Not Print In Excel | Excel Discussion (Misc queries) | |||
How to Import Visio Text Boxes into Excel as Text | Excel Discussion (Misc queries) | |||
In Excel, option to enter text in cells the same as text boxes | Excel Worksheet Functions |