nigelandrewfoster
Well-known Member
- Joined
- May 27, 2009
- Messages
- 747
Two quick queries:
The following code changes the active printer, but leaves the text of button 113 unchanged, but I don't know why.:
Also, if I change the highlighted lines to
it tells me the object doesn't support this property or method?
Thanks,
Nigel
The following code changes the active printer, but leaves the text of button 113 unchanged, but I don't know why.:
Code:
Sub PrinterChange()
Dim p As String, q As String
Select Case Application.ActivePrinter
Case "PrimoPDF on Ne00:": p = "HP lasejet on Ne04:": q = "HP"
Case "HP lasejet on Ne04:": p = "\\IBM\OKI C3200 on Ne06:": q = "OKI"
Case "\\IBM\OKI C3200 on Ne06:": p = "PrimoPDF on Ne00:": q = "PDF"
End Select
[B] Worksheets("Standing Orders").Shapes("Button 113").Select[/B]
[B] Selection.Characters.Text = q[/B]
Application.ActivePrinter = p
End Sub
Also, if I change the highlighted lines to
Code:
[B] Worksheets("Standing Orders").Shapes("Button 113").[/B][B]Characters.Text = q[/B]
Thanks,
Nigel
Last edited: