+ Reply to Thread
Results 1 to 3 of 3

New sheet and adding columns

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    3

    New sheet and adding columns

    I need a macro that will copy the sheet "Template" and create a new sheet with a defined name. Furthermore, I want the macro to create a column in the "0-PURCHASE AMOUNT" sheet with the defined name and apply the formula similar to the one in "Template" Column for that respective sheet. Also, I want the macro to add the vendors name, which is the new sheet name in the "0-Running Balance" sheet and add the amount for running balance. The amount will be the very last entry in Column K in the template or the respective vendor sheet.

    So far I was able to come up with the following code:


    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Please help me complete this macro and make it one single macro for all the tasks. I am attaching the excel file for reference.

    Thank you
    Attached Files Attached Files
    Last edited by arlu1201; 08-03-2012 at 07:02 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: New sheet and adding columns

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: New sheet and adding columns

    I need a macro that will copy the sheet "Template" and create a new sheet with a defined name. Furthermore, I want the macro to create a column in the "0-PURCHASE AMOUNT" sheet with the defined name and apply the formula similar to the one in "Template" Column for that respective sheet. Also, I want the macro to add the vendors name, which is the new sheet name in the "0-Running Balance" sheet and add the amount for running balance. The amount will be the very last entry in Column K in the template or the respective vendor sheet.
    I understand the part that you need a prompt for the sheetname. How many times should the template sheet be copied? Just once?

    Explain this part - I want the macro to create a column in the "0-PURCHASE AMOUNT" sheet with the defined name and apply the formula similar to the one in "Template" Column for that respective sheet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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