OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15-09-2010, 09:53
ajesion
Guest
 
Posts: n/a
Default Activation of the name with L at the beginning

What should I type in "L????" in the code:
Quote:
If kmp.Text = "L????" Then
...
To each name with the letter L at the beginning could be activated?
Reply With Quote
  #2  
Old 15-09-2010, 10:40
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
Here's a chunk of one of mine that may help you.
-John

Code:
Dim s As Shape, sr As ShapeRange
    Dim myChr As String
    
    Set sr = ActiveSelectionRange
    For Each s In sr
        If s.Type <> cdrTextShape Then Exit Sub
        myChr = s.Text.Story.Characters(1)
        
        If myChr = "!" Then 'do this.
            
        ElseIf myChr = "@" Then 'do this
            
        ElseIf myChr = "#" Then 'do this instead
            
        ElseIf myChr = "*" Then 'naw...do this
            
        Else '...forget it, do this
            
        End If
    Next s
Reply With Quote
  #3  
Old 15-09-2010, 10:54
ajesion
Guest
 
Posts: n/a
Default

Thanks John.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysterious problem in new page activation sakis_drm CorelDRAW/Corel DESIGNER VBA 7 02-07-2008 16:02


All times are GMT -5. The time now is 18:34.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com