![]() |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
Thanks for your time. I need to reference a text object so that I can use its properties. But this... Code:
Set shp = CorelDRAW.ActiveDocument.ActivePage.ActiveLayer.Shapes("Speaker1") Strangely this... Code:
sName_Graphic = "Speaker" & iSpeaker & "_Icon" Set shpGraphic = drwApp.ActivePage.ActiveLayer.Shapes(sName_Graphic) What's the difference? Andy |
#2
|
||||
|
||||
![]()
I hope you have an object with the Name "Speaker1" (as set in Object Manager), so when you select this object, CorelDRAW reports in its status bar "Speaker1 selected on Layer 1" or something like that. If you have just a text object which has "Speaker1" text in it, this won't work.
If you do have an object named "Speaker1", then make sure it is not part of a group, and, obviously, it is on the current layer (because you used ...ActiveLayer.Shapes...). If the object is within a group, then you will need to use FindShape instead of Shapes collection. This method can iterrate inside groups: Code:
Set shp = ActiveLayer.Shapes.FindShape("Speaker1") Code:
Set shp = ActiveLayer.FindShape("Speaker1") |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatically generate colour index numbers from 8-bit palet | Jast | New product ideas | 3 | 07-07-2005 14:02 |
I need to update objects visibility faster | NEHovis | Corel Photo-Paint VBA | 0 | 18-07-2003 08:54 |