M
mcwhirt3
Hello,
I am moving some vb i orignally created in publisher to VB6 to make
and add-in out of. Most of the code and userforms exported nicely,
however some of the code didn't take. My biggest problem is in filling
some wordart with a color. Below is the code i wanted to take into my
add-in. The "fillColor" property always gives me an error when i make
my .dll file. I am using publisher 2003 (11.0) and i have checked the
refrences to include office 11 and publisher 11 object library. I get
the error "invalid qualifier" when making the .dll. I see i can use
"fillcolor" as a property via intellisense but i think the rest of the
line isn't being read the same in vb6. Does anyone know why? Thanks for
any help!!
--------------------------------------------------------------------------------------
Private Sub CommandButton1_Click()
Dim shpWordArt As Shape
Set shpWordArt = ActiveDocument.Pages(1).Shapes.AddTextEffect _
(PresetTextEffect:=msoTextEffect7, Text:=TextBox1.Value, _
FontName:="Nino Salvaggio Sign", FontSize:=125, _
FontBold:=msoFalse, FontItalic:=msoFalse, _
Left:=144, Top:=72)
shpWordArt.FillColor.ForeColor.RGB = RGB(Red:=255, Green:=102, blue:=0)
TextBox1.Value = ""
TextBox1.SetFocus
Unload orangetext
End Sub
--------------------------------------------------------------------------------------
I am moving some vb i orignally created in publisher to VB6 to make
and add-in out of. Most of the code and userforms exported nicely,
however some of the code didn't take. My biggest problem is in filling
some wordart with a color. Below is the code i wanted to take into my
add-in. The "fillColor" property always gives me an error when i make
my .dll file. I am using publisher 2003 (11.0) and i have checked the
refrences to include office 11 and publisher 11 object library. I get
the error "invalid qualifier" when making the .dll. I see i can use
"fillcolor" as a property via intellisense but i think the rest of the
line isn't being read the same in vb6. Does anyone know why? Thanks for
any help!!
--------------------------------------------------------------------------------------
Private Sub CommandButton1_Click()
Dim shpWordArt As Shape
Set shpWordArt = ActiveDocument.Pages(1).Shapes.AddTextEffect _
(PresetTextEffect:=msoTextEffect7, Text:=TextBox1.Value, _
FontName:="Nino Salvaggio Sign", FontSize:=125, _
FontBold:=msoFalse, FontItalic:=msoFalse, _
Left:=144, Top:=72)
shpWordArt.FillColor.ForeColor.RGB = RGB(Red:=255, Green:=102, blue:=0)
TextBox1.Value = ""
TextBox1.SetFocus
Unload orangetext
End Sub
--------------------------------------------------------------------------------------