LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Testing text on a shape

Hi

Why does this line cause an error ?

If Sheets("Control").Shapes("Type1").Characters.Text = "OUTCOMES" Then C = 2


But this does not cause an error?

ActiveSheet.Shapes("Type1").Select
If Selection.Characters.Text = "OUTCOMES" Then ....


I would like to check the text on a shape which represents a button
without having to activate the sheet and select the shape first.

Any help appreciated on this one.

Andrew Bourke
Perth, Australia

 
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
User form - Testing for numbers or text NDBC Excel Discussion (Misc queries) 5 July 1st 09 06:59 AM
my curser changed from arrow shape to a cross shape???? bj New Users to Excel 1 February 5th 07 02:47 PM
Shape colour set according to text value tonywig Excel Discussion (Misc queries) 1 April 19th 06 07:18 PM
Testing for text Edgar Thoemmes[_4_] Excel Programming 1 October 26th 04 12:58 PM
Testing for text Art Excel Programming 2 March 2nd 04 02:12 PM


All times are GMT +1. The time now is 03:53 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"