PC Review


Reply
Thread Tools Rate Thread

Can I link to a print command from a cell?

 
 
=?Utf-8?B?dGNsb3VkQGxjYw==?=
Guest
Posts: n/a
 
      7th Mar 2007
I have a spreadsheet in which I have incorporated hyperlinks to access other
pages and cells. Is it possible to program a hyperlinked cell to cause a
particular worksheet to print without having to go to the print command on
the menu bar?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VmVyZ2VsIEFkcmlhbm8=?=
Guest
Posts: n/a
 
      7th Mar 2007
Yes, put your code in the FollowHyperlink event of the worksheet. For
example, this will print the active sheet if the hyperlink in A1 is clicked.

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
If Target.Range.Address = "$A$1" Then ActiveSheet.PrintOut
End Sub



"tcloud@lcc" wrote:

> I have a spreadsheet in which I have incorporated hyperlinks to access other
> pages and cells. Is it possible to program a hyperlinked cell to cause a
> particular worksheet to print without having to go to the print command on
> the menu bar?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
print command from command button in userform causes double chart Mike Jamesson Microsoft Excel Programming 5 11th Aug 2009 03:42 AM
BUG: print command from command button in userform causes double c Mike Jamesson Microsoft Excel Programming 0 10th Aug 2009 04:19 PM
Change Print Command or add a new print command =?Utf-8?B?RGFuaWVsIFIuIFlvdW5n?= Microsoft Excel Programming 3 11th Nov 2005 05:14 AM
"Print this" link in a cell?? Ltat42a Microsoft Excel Misc 6 23rd Oct 2005 07:50 PM
Click on a link and a picture loads in cell depending on which link you have clicked gatesheadthunde Microsoft Excel Discussion 7 13th Jun 2004 03:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 PM.