Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default printobject for image objects

I've got 3 signatures inserted into image objects. I have the visible
and printobjects options set to False in the properties dialog for all
3. I have a combo box linked to a cell S2 and a range of signature
names. I want the employee to pick his signature from the combo box,
and only his signature to print out, but still not be shown on the
sheet. here's what I've got and it just doesn't work. not stopping
the code or kicking errors, but not setting the printobject to true
either. Thanks in advance.

Public Sub signatures()

Sheet2.jessiedinsig.PrintObject = False
Sheet2.chriswinsig.PrintObject = False
Sheet2.davidshawsig.PrintObject = False

If Sheet2.Range("S2").Value = "Jessie Dinwiddie" Then
Sheet2.jessiedinsig.PrintObject = True
ElseIf Sheet2.Range("S2").Value = "David Shaw" Then
Sheet2.davidshawsig.PrintObject = True
ElseIf Sheet2.Range("S2").Value = "Christopher Winlock" Then
Sheet2.chriswinsig.PrintObject = True
End If

End Sub

Private Sub SigInspect_Change()

Sheet2.signatures

End Sub

  #3   Report Post  
 
Posts: n/a
Default

Solution:

For some reason, you have to have the visible property set to true as
well. this is why the design mode print preview worked and the regular
mode didn't. when you're in design mode, it overrides all visible
settings and sets them to true. when you leave design mode, they go
back to the set value. it seems silly to me that both visible and
printobject have to be set to true, but that's the way i got it to
work. here's the new code:

Public Sub signatures()

Sheet2.jessiedinsig.PrintObject = False
Sheet2.chriswinsig.PrintObject = False
Sheet2.davidshawsig.PrintObject = False
Sheet2.jessiedinsig.Visible = False
Sheet2.chriswinsig.Visible = False
Sheet2.davidshawsig.Visible = False

If Sheet2.Range("S2").Value = "Jessie Dinwiddie" Then
Sheet2.jessiedinsig.PrintObject = True
Sheet2.jessiedinsig.Visible = True
ElseIf Sheet2.Range("S2").Value = "David Shaw" Then
Sheet2.davidshawsig.PrintObject = True
Sheet2.davidshawsig.Visible = True
ElseIf Sheet2.Range("S2").Value = "Christopher Winlock" Then
Sheet2.chriswinsig.PrintObject = True
Sheet2.chriswinsig.Visible = True
End If

End Sub

Private Sub SigInspect_Change()

Sheet2.signatures

End Sub




wrote:
I've got 3 signatures inserted into image objects. I have the

visible
and printobjects options set to False in the properties dialog for

all
3. I have a combo box linked to a cell S2 and a range of signature
names. I want the employee to pick his signature from the combo box,
and only his signature to print out, but still not be shown on the
sheet. here's what I've got and it just doesn't work. not stopping
the code or kicking errors, but not setting the printobject to true
either. Thanks in advance.

Public Sub signatures()

Sheet2.jessiedinsig.PrintObject = False
Sheet2.chriswinsig.PrintObject = False
Sheet2.davidshawsig.PrintObject = False

If Sheet2.Range("S2").Value = "Jessie Dinwiddie" Then
Sheet2.jessiedinsig.PrintObject = True
ElseIf Sheet2.Range("S2").Value = "David Shaw" Then
Sheet2.davidshawsig.PrintObject = True
ElseIf Sheet2.Range("S2").Value = "Christopher Winlock" Then
Sheet2.chriswinsig.PrintObject = True
End If

End Sub

Private Sub SigInspect_Change()

Sheet2.signatures

End Sub


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Can't Shift Objects off Sheet Bettergains Excel Discussion (Misc queries) 1 February 25th 05 11:55 PM
Imported objects aehan Excel Discussion (Misc queries) 1 January 25th 05 01:25 PM
How do I put drawing objects behind text/cells in a spreadsheet? Carl Excel Discussion (Misc queries) 1 January 19th 05 04:48 PM
Help - Cannot shift objects off sheet problem sedelson@no Excel Discussion (Misc queries) 6 December 29th 04 06:34 PM
Vlookup / Objects help XL2003 Steve Jones Excel Discussion (Misc queries) 0 November 29th 04 05:01 PM


All times are GMT +1. The time now is 03:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"