Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default selecting contents of a text box in vba

Dumbo question, but this is about my second day ever playing with VBA.

I have a text box (not in a user form, just a rectangle with text written in
it) that contains the names/e-mails of a distribution list on a worksheet.

I have a macro that will send an e-mail using the Outlook .To function at a
click, but I want to use the contents of this box.

I know how to use the contents of a cell, but I really need to use the text
box

it must be really simple, but it's eluding me.

I keep searching the net but searching for 'textbox' keeps leading me to
userforms which isn't what I need.

Can anybody help?

- - How far off am I with

SendTo = ActiveSheet.Range("Rectangle 3").Value




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default selecting contents of a text box in vba

As a demonstration from the immediate window:

? activesheet.Rectangles("Rectangle 1").Text
abcdef

--
Regards,
Tom Ogilvy

"Neil" wrote in message
...
Dumbo question, but this is about my second day ever playing with VBA.

I have a text box (not in a user form, just a rectangle with text written

in
it) that contains the names/e-mails of a distribution list on a worksheet.

I have a macro that will send an e-mail using the Outlook .To function at

a
click, but I want to use the contents of this box.

I know how to use the contents of a cell, but I really need to use the

text
box

it must be really simple, but it's eluding me.

I keep searching the net but searching for 'textbox' keeps leading me to
userforms which isn't what I need.

Can anybody help?

- - How far off am I with

SendTo = ActiveSheet.Range("Rectangle 3").Value






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
selecting certain text in long row of text Jonathan Excel Worksheet Functions 1 August 27th 05 12:26 AM
Selecting a filepath based on cell contents ceemo Excel Discussion (Misc queries) 1 June 25th 05 01:40 PM
Selecting all contents on page (range) andycharger[_19_] Excel Programming 1 April 5th 04 09:55 AM
Selecting & Displaying An Array's Contents Scott Excel Programming 0 February 20th 04 04:21 PM
Selecting ranges with a text box Ed[_13_] Excel Programming 1 September 22nd 03 04:47 PM


All times are GMT +1. The time now is 03:44 AM.

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"