+ Reply to Thread
Results 1 to 3 of 3

Auto-export worksheet to form fillable PDF using a macro button

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Auto-export worksheet to form fillable PDF using a macro button

    Hello,

    I've created a worksheet that allows my team to build an order for a customer. I've created a PDF form with blanks so they can fill in the necessary values in the correct fields ie. Tariff Name, Handset Name, Minutes etc.

    I'm hoping to create a macro button that will export all the the data needed and auto fill the PDF form to save time.

    So far I've added a button with the following code

    Sub CopyData()


    Sheets("Quote").Range("v16:ab16").Copy
    Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues

    End Sub

    This simply adds all the data needed onto a separate sheet ready to be exported as a csv.

    I'm in need of the rest of the code to export/import Sheet1 into my fillable form.

    So far attempts to export to .csv have turned my entire worksheet into a .csv file or caused errors within the code.

    I've attached a sample of my Workbook and PDF form below.

    Sample Documents

    Excuse the messy worksheet. I'm going to tidy it up once I've cracked this.

    Thanks,

    Sabri

  2. #2
    Registered User
    Join Date
    01-24-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Auto-export worksheet to form fillable PDF using a macro button

    I've found a few posts online that suggest a program called iTextSharp will allow me to do the above?

    Is anyone familiar with this program? And if so do you know if this will work/how it works?

    Thanks,

    Sabri

  3. #3
    Registered User
    Join Date
    01-24-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Auto-export worksheet to form fillable PDF using a macro button

    In case it's useful to anyone else, I've managed to solve my issue.

    Details and example files can be found on a thread I created on another forum.

    OZGrid - Auto-export worksheet to fillable PDF form using a macro button

    Sabri

+ 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. [SOLVED] How to use a Macro submit button to export results to another worksheet
    By EscargotMyCargo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-21-2013, 07:51 AM
  2. Macro Form Button auto copy down with data table when new row occurs?
    By xlyfe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2013, 06:16 PM
  3. Fillable Form - Help Please!
    By JenAllen in forum Excel General
    Replies: 3
    Last Post: 03-11-2011, 04:41 AM
  4. macro assigned to a form control button in a protected worksheet
    By lee_har in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2009, 02:29 AM
  5. Fillable form loses fillable fields when emailed - how do I fix
    By Shelley in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-24-2006, 11:10 AM

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