Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default OnAction bei vielen Shapes ... ich meine sehr viele Shapes?

Hi.

Gibt es einen einfachen weg, um das OnAction-Event von Shapes gezielt
abzufangen?
Habe hier auf einem Tabellenblatt geschätzte 1000 Shapes, bei denen ich
für jedes einzelne je nachdem was für Farbe es hat, eine bestimmte
action ausführen will.

Momentan habe ich es so gelöst, das ich ein Modul habe:

Sub A_1(): A A_1: End Sub
Sub A_2(): A A_2: End Sub
Sub A_3(): A A_3: End Sub
Sub A_4(): A A_4: End Sub
....
Sub A_1000(): A A_1000: End Sub

Jedem Shape habe ich dann ein eigenes OnAction zugewiesen:
z.B. .OnAction = "A_1"

Sub A (Kasten as Shape)
'HIer dann die Action
End Sub

Hab ich was übersehen, so das es auch einfacher geht?

Michi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default OnAction bei vielen Shapes ... ich meine sehr viele Shapes?

Sorry, wrong newsgroup .....

Michi


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
excel document with shapes on it but the shapes do not print [email protected] Excel Worksheet Functions 2 October 22nd 09 06:17 PM
Naming Auto Shapes and Creating new Shapes AL2000 Excel Discussion (Misc queries) 3 September 10th 07 04:12 AM
When drawing shapes in excel the shapes keep disappearing Tape Excel Discussion (Misc queries) 1 October 6th 06 04:23 PM
OnAction events intermittently failing on Shapes in Dialogsheets BizMark Excel Discussion (Misc queries) 0 August 12th 05 01:24 PM
How can i get more 3D shapes for Auto shapes in excel? Ajey Excel Discussion (Misc queries) 0 March 3rd 05 09:53 AM


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