+ Reply to Thread
Results 1 to 3 of 3

Create PDF, name it based on cell

  1. #1
    Registered User
    Join Date
    08-09-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    20

    Create PDF, name it based on cell

    I have a sheet I wanna insert a button to save as pdf

    It needs to create a PDF based on A1:H41 and name it from the cell D3 - I need it to ask where to save it, can anyone help me in the right direction?

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Create PDF, name it based on cell

    Use the macro recorder to get basic code for saving the range as a PDF, then post it. Changes to that will be minor

  3. #3
    Registered User
    Join Date
    08-09-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    20

    Re: Create PDF, name it based on cell

    Sub Gemsompdf()
    '
    ' Gemsompdf Makro
    '

    '
    ChDir "C:\Users\Martin\Desktop"
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
    "C:\Users\Martin\Desktop\HERE SHOULD BE CONTENT OF D3.pdf", Quality:= _
    xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
    OpenAfterPublish:=False
    End Sub

    And I should choose where to save every time?

+ 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. VBA To Create Folder Based on Cell Value and Save File as Same Cell Value...HELP!
    By danlynnsydr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2016, 06:58 PM
  2. [SOLVED] Create sheets based on Cell A name
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-05-2015, 04:24 AM
  3. [SOLVED] Formula to create a blank cell based on a dollar amount in another cell.
    By avidcat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2014, 02:11 AM
  4. Create Auto-Calculating Cell and Assign Cell Values Based on a Macro
    By Titanium Fox in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-26-2013, 12:00 AM
  5. Replies: 5
    Last Post: 09-13-2012, 09:49 AM
  6. Replies: 1
    Last Post: 09-12-2012, 11:29 AM
  7. Create 2 Totals, One Based On Name And One Based On Name And Cell Fill Color
    By PIPPIBOOKS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-20-2008, 04:41 PM

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