+ Reply to Thread
Results 1 to 2 of 2

Office Script code to print to PDF

  1. #1
    Registered User
    Join Date
    08-31-2023
    Location
    andorra
    MS-Off Ver
    365
    Posts
    1

    Office Script code to print to PDF

    Hi, I'm getting crazy trying to find a solution. I'm working on a share excel on micro 365 for team work, and on this excel we sant to print by clicking a button, just to print to pdf and save in the computer.

    As I know this version doesn't work with VB, just basic java script and I cant manage it to find the code to just print a selection of cells.

    Thank you very much and aprreciate for any help.
    Last edited by 6StringJazzer; 08-31-2023 at 08:21 AM. Reason: better titles please

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Office Script code to print to PDF

    paste this code into a module ,
    then select the cells to save,
    then run: SaveBlock2Pdf() (put it on the QuickAccess toolbar)

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to use script to print the specific sheet of Excel?
    By woshichuanqilz in forum Excel General
    Replies: 1
    Last Post: 07-08-2017, 02:25 PM
  2. VB script to print value in field
    By krappleby1976 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-23-2015, 07:23 AM
  3. [SOLVED] script to set print area
    By MATT.B in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2014, 07:49 PM
  4. Excel script to print URLs
    By hudwink in forum Excel General
    Replies: 1
    Last Post: 10-20-2011, 12:45 PM
  5. macro script for IF & print functions
    By rhua5436 in forum Excel General
    Replies: 6
    Last Post: 04-14-2011, 11:11 AM
  6. Create VBA script to short, dedicated button in excel for script?
    By realized in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2009, 11:54 PM
  7. can't print excel sheet using wsh script
    By onedollar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2006, 11:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1