Link to home
Start Free TrialLog in
Avatar of CPH_SYS
CPH_SYS

asked on

MS WORD: introduce a variable field in wordart

Need to generate a word form which uses a wordart to show a variable field (an incremental number).
(other than change the number and print as indicated bellow)
ActiveDocument.Shapes("WordArt 2").Select
    Selection.ShapeRange.TextEffect.Text = "00005"
    Application.PrintOut FileName:="", Range:=wdPrintAllDocument, .... (rest of print follows)
ActiveDocument.Shapes("WordArt 2").Select
    Selection.ShapeRange.TextEffect.Text = "00006"
    Application.PrintOut FileName:="", Range:=wdPrintAllDocument, .... (rest of print follows)
Etc etc
Avatar of Joanne M. Orzech
Joanne M. Orzech
Flag of United States of America image

So I guess I don't understand your question.... you need to generate a word form????  and you want the word form to contain wordart?

Please clarify

Avatar of CPH_SYS
CPH_SYS

ASKER

Thanks,

Yes, I need a word form (think it like a ticket) which has (amont text and graphics) a number on it. The number is variable (incremental) and is written with word art.

But do you need the VB code?  It appears you already have the code.... I'm still a little confused.... sorry

    ActiveDocument.Shapes.AddTextEffect(msoTextEffect25, "00001", _
        "Times New Roman", 36#, msoFalse, msoFalse, 261.35, 261#).Select

Open in new window

Avatar of CPH_SYS

ASKER

The code I have posted is the one I would like to avoid (if that is possible). I want to insert a FIELD into the wordart (instead of insert text). That would allow me use the mail merge facility.
Allow me to explain further:
I have a form with text and graphics and a variable number. I would like to take this number from a list (i.e. an Excel Range), so I can only manipulate said list every time I need to generate a bath of forms.  If I use a VBA macro as the one posted, I would have to read such list along with the macro, which (is it is possible) I want to avoid.

Thanks

Well, I'm afraid you've lost me.....I just don't understand what you need I guess.  If you have the number you need in Excel, then just insert that field into the Word document.....

If you don't want to use VB, then what do you want?


Avatar of CPH_SYS

ASKER

Is not just "the number". Is a big list of numbers, which list grows (more numbers are added to it). Let me explain in other words (I assume you are familiar with mail-merge):
Assume you want to write a letter which has a variable field (you want to write one letter for each variable field you have). That is very easy using mail-merge. Just need to insert a field code in the basic letter and MS word mail merge do the rest.
Now, kyou have the same, but you want to number as a wordArt shape (each different number). So the ideal woulb be to insert a field in wordart (isntead to the plain text) But I believe that is not permitted.

You're right... it's not permitted - and you can't do it without using VB.  

Why does it have to be WordArt - I'm curious.
Avatar of CPH_SYS

ASKER

The main reason is because the number needs to appears rotated in the form (the other reason is because it would be better is the number has a fancy shape).

Thanks any way

SOLUTION
Avatar of Joanne M. Orzech
Joanne M. Orzech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CPH_SYS

ASKER

Closed because the problem has no solution
It can't be done is an answer....