connecting users of the CorelDRAW family of products

Macros

rated by 0 users
This post has 11 Replies | 1 Follower

Share  
Page 1 of 1 (12 items) | RSS

Not Ranked
Pune, India
Parag Posted: Sun, Jun 28 2009 23:38

Hi All:

I tried to record some macros and the record gives errors and often looks in this way.

Sub SmallCase()
    '
    ' Recorded 6/28/2009
    '
    ' Description:
    '
    '
    Dim ss108259 As Shape
    Set ss108259 = ActiveSelection.Shapes(1)
    'The recording of this command is not supported
    'The recording of this command is not supported
    'The recording of this command is not supported
    'The recording of this command is not supported
    'The recording of this command is not supported
    'The recording of this command is not supported
    'The recording of this command is not supported
End Sub

I recorded few macros so that I could study them and try implementing them but had no success with that.

Regards,

Parag

 

techparag:
'The recording of this command is not supported
    'The recording of this command is not supported
    'The recording of this command is not supported
    'The recording of this command is not supported
    'The recording of this command is not supported
    'The recording of this command is not supported
    'The recording of this command is not supported

Can u explain a little what exactly were u tying to do for the above lines?

Peace I-)

Top 10 Contributor
Uruguay
Male

please, explain the steps that you are recording, and, if it's possible, attach the recorder macro

Ariel Garaza Díaz

  arielgaraza.com


Not Ranked
Pune, India

I am trying to change case from. 

Steps for recording:

1. Start recording macro from Tools--> Visual Basic --> Record.

2. Perform the operation. Eg: Changing Case in this example.

3. Stop recording macro. And, then try running it or edit it from Tools --> Visual Basic --> Play. In play there is an edit option from where we can edit the macro in vb editor.

I hope I am not wrong in this operation.

Regards,

Parag

 

techparag:
I am trying to change case from.

You don't need to record macro for that, u can search for "Change Case" in the customizations and assign short key to it.

Or if you do wanna record a macro any way, make sure ur "text is selected" and then start the record button. Hope that helps you.

Peace I-)

Top 10 Contributor
Uruguay
Male

Perhaps you must select a new text for apply

Why you don't use Shift+F3 for this?

Ariel Garaza Díaz

  arielgaraza.com


Top 10 Contributor
Uruguay
Male

Hi, Aleem, you and I said similar ideas at the same time. It's a good match

Ariel Garaza Díaz

  arielgaraza.com


Ariel:
Hi, Aleem, you and I said similar ideas at the same time. It's a good match

It's an honour for me to match with the older member of this helpful community

Peace I-)

Top 10 Contributor
Uruguay
Male

I'm the older? if I'm only 43 years old! Big Smile

Ariel Garaza Díaz

  arielgaraza.com


Ariel:
if I'm only 43 years old! Big Smile

Im just 25, Actually I mean senior member not the OLD one. LOL!

 

Peace I-)

The macro recorder is not perfect. There are a few operations that are not recorded. Sometimes they are not recorded because they are not supported by the VBA engine, but not in every case. In this case, there seems to be a "ChangeCase" method.

Your best friend is the Draw Vba help file. Locate the help file in this location:

<Your Corel Draw Installation Folder>\Programs\draw_vba.chm

It is also available from the Vba Editor. Open the object browser, select Draw library and press F1.

 

Top 75 Contributor
Florida
Male

Go to Alex's VBA forum and do a search using the keywork 'changecase', then you can look at some example codes that use the changecase method and go from there, it's pretty easy.

Manuel Rivas
Merritt Island, Fl USA

Page 1 of 1 (12 items) | RSS
© Corel Corporation. The content herein is in the form of a personal web log ("Blog") or forum posting. As such, the views expressed in this site are those of the participants and do not necessarily reflect the views of Corel Corporation, or its affiliates and their respective officers, directors, employees and agents. Terms and Conditions / User Guidelines.