![]() |
#1
|
|||
|
|||
![]()
Hi all. I wrote a small script to place some text on a page. I created this in v12 of corels vba. now Ive moved upto 13 (and regret it) When ever I place a cusor to type it starts out at 270 deg. When I run my lil script it does the same. Have the methods etc changed so much between 12 & 13????
btw the macro worked fine in 12. Code:
Sub ProdDrawing() ActiveDocument.BeginCommandGroup "Production Drawing" ActiveDocument.Unit = cdrInch Set My_Item = ActiveLayer.CreateArtisticText(10, 1.75, "Production Drawing " & Date & " (101)") Set txt = ActiveShape.Text.Story.Paragraphs(1) With txt .ChangeCase cdrTextUpperCase .Font = "Arial Black" .Size = 12 .Bold = True .Underline = cdrSingleThickFontLine .Fill.UniformColor.RGBAssign 255, 0, 0 End With ActiveDocument.EndCommandGroup End Sub Im stumped. Thanx all |
#2
|
|||
|
|||
![]()
This works for me...
Code:
Sub ProdDrawing() Dim My_Item As Shape Dim txt As Text ActiveDocument.BeginCommandGroup "Production Drawing" ActiveDocument.Unit = cdrInch Set My_Item = ActiveLayer.CreateArtisticText(10, 1.75, "Production Drawing " & Date & " (101)") Set txt = ActiveShape.Text With txt.Story.Paragraphs(1) .ChangeCase cdrTextUpperCase .Font = "Arial Black" .Size = 12 .Bold = True .Underline = cdrSingleThickFontLine .Fill.UniformColor.RGBAssign 255, 0, 0 End With ActiveDocument.EndCommandGroup End Sub No rotation at all. ~G~ |
![]() |
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 |
Australia Day moved! | GordonG | Calendar Wizard | 2 | 25-11-2006 19:47 |
Forum moved | Alex | Site News | 0 | 27-04-2005 02:52 |