Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to call out object's text w/o selecting

If Right(Sheets("DATABASE VIEW").Shapes
("stations").Characters.Text, 3) = "OFF" Then hasstation =
1


This is what I am trying to do, I want to check to see if
the text (the last 3 letters) in the button
called "stations" are "OFF". I do not want to select the
button to do this, however. I tried above script, but it
does not work. Let me know if you have a solution. As
always, for the millionth time!, all help is appreciated!
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default How to call out object's text w/o selecting

Wandering,

You need to use the shape's TextFrame object to access the Text:

If Right(Sheets("DATABASE
VIEW").Shapes("stations").TextFrame.Characters.Tex t, 3) = "OFF" Then....

HTH,
Bernie
MS Excel MVP

"Wandering Mage" wrote in message
...
If Right(Sheets("DATABASE VIEW").Shapes
("stations").Characters.Text, 3) = "OFF" Then hasstation =
1


This is what I am trying to do, I want to check to see if
the text (the last 3 letters) in the button
called "stations" are "OFF". I do not want to select the
button to do this, however. I tried above script, but it
does not work. Let me know if you have a solution. As
always, for the millionth time!, all help is appreciated!
Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to call out object's text w/o selecting

Awesome, thanks!
-----Original Message-----
Wandering,

You need to use the shape's TextFrame object to access

the Text:

If Right(Sheets("DATABASE
VIEW").Shapes("stations").TextFrame.Characters.Te xt, 3)

= "OFF" Then....

HTH,
Bernie
MS Excel MVP

"Wandering Mage"

wrote in message
...
If Right(Sheets("DATABASE VIEW").Shapes
("stations").Characters.Text, 3) = "OFF" Then

hasstation =
1


This is what I am trying to do, I want to check to see

if
the text (the last 3 letters) in the button
called "stations" are "OFF". I do not want to select

the
button to do this, however. I tried above script, but

it
does not work. Let me know if you have a solution. As
always, for the millionth time!, all help is

appreciated!
Thanks.



.

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 do I call up the Text Import Wizard via a macro. Computer, call me if you have a problem Excel Worksheet Functions 4 October 11th 07 10:06 PM
Call Center Management: How to calculate 'cost per call' Denniso6 Excel Discussion (Misc queries) 2 June 25th 06 05:01 PM
Number and text format in the same call Jim Davis New Users to Excel 1 March 13th 06 11:01 PM
Handout of Excel Object's Properties and Methods Luis Carrion Excel Programming 2 July 11th 03 01:51 PM


All times are GMT +1. The time now is 02:26 PM.

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"