+ Reply to Thread
Results 1 to 9 of 9

Problem exporting worksheet to pdf

  1. #1
    Registered User
    Join Date
    06-24-2015
    Location
    Michigan, United States
    MS-Off Ver
    2013
    Posts
    5

    Problem exporting worksheet to pdf

    I have a workbook with an invoice sheet and have a macro to print it to pdf then send the data to a sheet called register with the invoice information and a link to the pdf.
    The only thing I cannot get it to do is export to pdf. Dont know if the invoice layout is the problem. But I'm using a very simple layout.
    Using Office 2013.
    Here is the VBA:


    Please Login or Register  to view this content.
    Last edited by Kenbo; 07-01-2015 at 11:45 PM.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Problem exporting worksheet to pdf

    Please Login or Register  to view this content.
    are any of these cells a date?
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-24-2015
    Location
    Michigan, United States
    MS-Off Ver
    2013
    Posts
    5

    Re: Problem exporting worksheet to pdf

    yes D7 is a date

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Problem exporting worksheet to pdf

    date will return DD/MM/YYYY in the US
    you cant save files with "/"
    try this instead

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-24-2015
    Location
    Michigan, United States
    MS-Off Ver
    2013
    Posts
    5

    Re: Problem exporting worksheet to pdf

    Gave me a syntax error

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Problem exporting worksheet to pdf

    does this give you syntax error as well?

    Please Login or Register  to view this content.
    if not what does msgbox say?

  7. #7
    Registered User
    Join Date
    06-24-2015
    Location
    Michigan, United States
    MS-Off Ver
    2013
    Posts
    5

    Re: Problem exporting worksheet to pdf

    That did the trick! Thank you so much for your time and help!

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Problem exporting worksheet to pdf

    not a problem

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Registered User
    Join Date
    06-24-2015
    Location
    Michigan, United States
    MS-Off Ver
    2013
    Posts
    5

    Re: Problem exporting worksheet to pdf

    Done...Thanks again

+ 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. problem in exporting as pdf in excel 2013
    By contact_ankit86 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2013, 01:21 AM
  2. [SOLVED] Exporting selected cell valuesfrom one worksheet to another worksheet in the same workbook
    By sharabh in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-09-2012, 02:33 AM
  3. CSV exporting problem (quotes)
    By Sebolains in forum Excel General
    Replies: 1
    Last Post: 05-03-2010, 07:31 PM
  4. Problem Exporting to Word
    By Dave9704 in forum Excel General
    Replies: 2
    Last Post: 05-11-2009, 05:44 AM
  5. [SOLVED] problem exporting to CSV
    By hilz in forum Excel General
    Replies: 1
    Last Post: 08-09-2006, 09:39 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