Saving as PDF without showing the submit button

HomeTek

New Member
Joined
Jan 27, 2017
Messages
36
Office Version
  1. 365
Platform
  1. Windows
Hi forum,

I have created a macro button that when pressed it saves the current worksheet as a PDF.

This works great except the only thing I do not want to appear on the PDF is the button itself.

Do you know of a way around this please? Other than having the button on a different part of the worksheet/book.

Many thanks
 

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

CharlesChuckieCharles

Well-known Member
Joined
May 10, 2011
Messages
2,153
Hi

Did you use a Form control or a activex Control

Because Form Controls by default don't Save to a PDF (print =false)

Activex have a property Printobject which defaults to true

creating a PDF is like Printing a file in EXCEL
 
Last edited:

HomeTek

New Member
Joined
Jan 27, 2017
Messages
36
Office Version
  1. 365
Platform
  1. Windows
Hi

Did you use a Form control or a activex Control

Because Form Controls by default don't Save to a PDF (print =false)

Activex have a property Printobject which defaults to true

creating a PDF is like Printing a file in EXCEL

I used an Active X control. Ahhh I never knew that. So simple

Thanks very much for this.

I must go and learn the differences between the 2 types.
 

Watch MrExcel Video

Forum statistics

Threads
1,109,351
Messages
5,528,194
Members
409,807
Latest member
nicky736

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top