Solved

MS WORD: introduce a variable field in wordart

Posted on 2008-10-12
12
480 Views
Last Modified: 2013-11-10
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
0
Comment
Question by:CPH_SYS
  • 6
  • 6
12 Comments
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 22704045
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

0
 

Author Comment

by:CPH_SYS
ID: 22704182
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.

0
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 22704743
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

0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:CPH_SYS
ID: 22705372
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

0
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 22705521
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?


0
 

Author Comment

by:CPH_SYS
ID: 22705703
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.

0
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 22705846
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.
0
 

Author Comment

by:CPH_SYS
ID: 22706045
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

0
 
LVL 37

Assisted Solution

by:Joanne M. Orzech
Joanne M. Orzech earned 200 total points
ID: 22706177
Well, if you put the number in a table, you can rotate the text....to a certain degree anyway.  And I think if you used the right fonts, and colors, etc., you wouldn't need WordArt....but I leave that up to you.

000002.doc
0
 

Accepted Solution

by:
CPH_SYS earned 0 total points
ID: 22706374
Thank you JOrzech. My problem is that the rotations needs to be either 30, 45 or 60 degrees. Unless I have missed something, MS word 2003 only allows to rotate 90 degrees (or -90, which is the same for this purposes).

When I start to work on this form, my first intention was to use a word table. As Excel permits to rotate a number in any degree, I was expecting to have the same facility in MS word tables, but I could not find it.

Brgds,

0
 

Author Comment

by:CPH_SYS
ID: 23041568
Closed because the problem has no solution
0
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 23042336
It can't be done is an answer....
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
copying from excel to word 2 45
CheckBox Not Recognized as True When Checked 3 35
The blinking Office button 4 43
Visual Studio: built-in keystroke automation 2 64
I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question