Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Print sheet but no command button

Posted on 2014-04-19
2
Medium Priority
?
291 Views
Last Modified: 2014-04-19
Folks,
I have a module that prints my worksheets.
Sub PrintSheet()
    Dim UserResponse
    UserResponse = MsgBox(Prompt:="Print Worksheet (Yes) for Print Preview", Buttons:=vbYesNoCancel, Title:="Print Worksheet")
    Select Case UserResponse
        Case vbCancel
            Exit Sub
        Case vbYes
           ' ActiveSheet.PrintOut Preview:=True
           PrintToFit
        Case Else
        PrintToFit
             ActiveSheet.PrintOut Copies:=1
    End Select

End Sub

Open in new window


The "PrintToFit" is just another called module that scales the print to fit one page.

I would like to have the function that when a worksheet is print it does not print any of the command buttons as see below:
No print command button
0
Comment
Question by:Frank Freese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 2000 total points
ID: 40010614
Go to the properties of each of the buttons and on the last tab there is an option to disable printing of the shape.
0
 

Author Closing Comment

by:Frank Freese
ID: 40010629
great but that was too easy - I'd never noticed that before
thanks - great job
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question