+ Reply to Thread
Results 1 to 8 of 8

Create pdf file

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Create pdf file

    Hello:

    Please refer to attached sheet.
    I need a VB Code to create a pdf file (Print Pages 1-2) of the attached excel sheet with File Name in cell F4 and location F5

    Please let me know if you have any questions.
    Thanks
    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Create pdf file

    Recording a macro and inserting a concatenated string should suffice.

    With a bit more bling...
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Create pdf file

    Hi Kenneth:

    Thanks a bunch, this works, however i want to save the pdf file in location F5 with file name as in cell F4.
    Please let me know if you have any questions.
    Thanks.
    Riz

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Create pdf file

    Hi Kenneth:

    I am very sorry, it does save the file correctly.
    Thanks a lot.....and if any problem i will let you know after further testing.
    Riz

  5. #5
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Create pdf file

    Good deal.

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Create pdf file

    Hi Kenneth:
    I am facing a small problem when i implement the code in my sheet.
    I am seeing in your code it first find ("TOTAL LIABILITIES & EQUITY").
    Here in my worksheet, teh string : ("TOTAL LIABILITIES & EQUITY") is coming from different part of the sheet and i have formula in the cell which will show the word : ("TOTAL LIABILITIES & EQUITY").
    If i leave the formula then your code will not work.
    If I change it to copy and paste special value ("TOTAL LIABILITIES & EQUITY") then it will work.
    For example in cell B51 i have formula : =IF(AB51="","",AB51) which brings the text string TOTAL LIABILITIES & EQUITY.

    Please let me know if you have any questions.
    Thanks.

    Riz

  7. #7
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Create pdf file

    Recording a macro will show you the syntax if you don't know it.
    Please Login or Register  to view this content.

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Create pdf file

    Hi Kenneth:

    Thanks a lot, this works great.
    Riz

+ 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. Macro to create a file from base file if data is availabe in defined columns
    By shansakhi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2014, 10:55 PM
  2. [SOLVED] Macro to create text file and write contents of selected cells to the file
    By m@cro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2013, 10:21 AM
  3. Replies: 3
    Last Post: 09-30-2011, 04:35 AM
  4. Create Check List to Delete Columns and Create New File
    By margetc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2011, 05:03 PM
  5. Replies: 1
    Last Post: 07-14-2007, 07:25 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