+ Reply to Thread
Results 1 to 7 of 7

Is it possible to use this PDF macro to create a new Excel file the same way?

  1. #1
    Forum Contributor
    Join Date
    05-19-2012
    Location
    houston
    MS-Off Ver
    excel 2013
    Posts
    103

    Is it possible to use this PDF macro to create a new Excel file the same way?

    Hi,

    I use a macro to create/save a PDF file to my computer and it works great. Is there a way to change this code or another code that will do the same thing except create/save a new Excel workbook with the same data? I have a large workbook and sometimes I need to take specific data from it and enter it into a new workbook sheet. As of now, I have to create the new workbook, copy the data and then paste it to the new workbook. It would be great if I could just click a macro button that then creates a new workbook with the specific data in it... just like the macro does with a PDF file. Is this possible?

    Here is the PDF macro code I use...

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Is it possible to use this PDF macro to create a new Excel file the same way?

    .
    This is one of many methods :

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-19-2012
    Location
    houston
    MS-Off Ver
    excel 2013
    Posts
    103

    Re: Is it possible to use this PDF macro to create a new Excel file the same way?

    Hi Logit,

    Thanks so much... it's almost perfect. The only thing I'm trying to figure out is how to only paste the values that are copied and not the format with it. I tried to change paste to the paste special code but get a run time error.

    Any ideas on how to change it so it only pastes the values?

  4. #4
    Forum Contributor
    Join Date
    05-19-2012
    Location
    houston
    MS-Off Ver
    excel 2013
    Posts
    103

    Re: Is it possible to use this PDF macro to create a new Excel file the same way?

    Figured it out! Thank you again Logit!

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Is it possible to use this PDF macro to create a new Excel file the same way?

    .
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    05-19-2012
    Location
    houston
    MS-Off Ver
    excel 2013
    Posts
    103

    Re: Is it possible to use this PDF macro to create a new Excel file the same way?

    I just did this and it seems to work. Should I change it to your new code above?

    Please Login or Register  to view this content.

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Is it possible to use this PDF macro to create a new Excel file the same way?

    .
    If your macro works .. then it is good.

+ 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 and save excel file from a master excel file
    By sunny81 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2017, 10:29 PM
  2. Macro to create and save excel file from a master excel file
    By sunny81 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2017, 09:49 PM
  3. Replies: 1
    Last Post: 12-09-2014, 07:17 AM
  4. [SOLVED] Macro to create a *.csv file from excel
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2014, 11:45 PM
  5. Create folder, excel file, pdf file, clear details macro
    By cemartinho in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2013, 08:52 AM
  6. Replies: 3
    Last Post: 05-03-2012, 10:56 AM
  7. Replies: 3
    Last Post: 09-30-2011, 04:35 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