+ Reply to Thread
Results 1 to 6 of 6

Automatically generating excel file using template

  1. #1
    Registered User
    Join Date
    02-11-2019
    Location
    india
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    33

    Automatically generating excel file using template

    Hi,

    I have a macro (double click any cell of Column C - "Create PDF") which creates an invoice in pdf form using a template ("Invoice Template" sheet) and saves it in the destination folder mentioned in the code.

    I want an addition to this code wherein if I double click any cell of Column D an Excel sheet for that invoice gets generated and gets saved in the destination folder.

    Thanks in advance!

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by yogyata26; 09-10-2019 at 07:52 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Automatically generating excel file using template

    So what part of the code is not working?

  3. #3
    Registered User
    Join Date
    02-11-2019
    Location
    india
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    33

    Re: Automatically generating excel file using template

    It is working...It just creates pdf.
    I want Excel sheet also to be created!

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Automatically generating excel file using template

    Please Login or Register  to view this content.
    will create a new workbook, with just the sheet. It becomes the active workbook, use a saveas code to save the active wb, then close it.

  5. #5
    Registered User
    Join Date
    02-11-2019
    Location
    india
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    33

    Re: Automatically generating excel file using template

    Can you please incorporate this in the existing code?

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Automatically generating excel file using template

    This additional code in the worksheet doubleClick event will do it.
    You will have to edit it to fit your requirements.

    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 11-13-2017, 01:36 AM
  2. Replies: 0
    Last Post: 12-21-2015, 05:10 AM
  3. Generating Notepad file from Excel.
    By Jim15 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2011, 11:02 AM
  4. Replies: 0
    Last Post: 11-08-2007, 04:14 AM
  5. Excel Form Generating File
    By daufoi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2007, 12:26 PM
  6. Replies: 1
    Last Post: 08-25-2005, 04:05 PM
  7. [SOLVED] Excel template to load automatically as the default template?
    By David in forum Excel General
    Replies: 1
    Last Post: 03-21-2005, 09:06 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