+ Reply to Thread
Results 1 to 4 of 4

VBA Code to create new tables

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    273

    VBA Code to create new tables

    Hello,

    I lost code in a file that would add or remove tables. You would simply click a button and it would make a copy of the main table and paste it to the last unused column to the right of all the tables and rename the table. Example Denominator A, B, C and so on. I have attached the file.
    Attached Files Attached Files
    Last edited by amartin575; 04-29-2013 at 05:37 PM.

  2. #2
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    273

    Re: VBA Code to create new tables

    basically in the attached file I want to copy the table in the range C15:D68 over to the last unused column to the right in this case I15:J68 and be able to give the option to name the new table. The copy paste would copy any formulas in the original table. The template would be used by various people who could have a varying number of tables in their file so I need it to be able to click the button and paste the new table to the right each time.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,321

    Re: VBA Code to create new tables

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    273

    Re: VBA Code to create new tables

    That worked awesome thanks! How would I change the code to remove a table? Where a user clicks a remove table button and it brings up a window asking what table to remove and you give it the table name and it finds and deletes it?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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