+ Reply to Thread
Results 1 to 6 of 6

macro to insert data table

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    sydney
    MS-Off Ver
    Excel 365
    Posts
    71

    macro to insert data table

    hi guys,

    i need help with creating a macro to insert the attached data table into a spreadsheet under the tab name of 'Decay Model',

    is that possible?

    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: macro to insert data table

    Sorry, but I really don't know what you need. I see a spreadsheet with a table in it. What else do you want. It's not clear to me.
    Please elaborate.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    10-09-2012
    Location
    sydney
    MS-Off Ver
    Excel 365
    Posts
    71

    Re: macro to insert data table

    i want to create a macro to insert the attached data table into spreadsheet.

    i have some sets of data which have calculations based on the table in the spreadsheet i have attached. think of it as a reference table. i want to run a macro to insert that data table into a tab in a different spreadsheet so i can run some calculations.

    hope this makes sense!

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: macro to insert data table

    Why a macro? Is it something you have to do that often? If you have both workbooks opened, it is easy to copy this specific tab to the other opened workbook containing your sets of data.

  5. #5
    Registered User
    Join Date
    10-09-2012
    Location
    sydney
    MS-Off Ver
    Excel 365
    Posts
    71

    Re: macro to insert data table

    Yes i use the table quite a lot. It would be vry useful to have a macro to insert the table into a tab on another spreadsheet which contains my data.

  6. #6
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: macro to insert data table

    Please try the following workbook which contains your table, a macro and a button you click to copy the table to another workbook. The macro ask you to enter the workbook name. It would be a good thing to give the whole name of the workbook along with its extension like ".xlsx" or ".xls". Sometimes it works without the extension, sometimes it won't.
    Hope this is what you were looking for.
    Regards
    Attached Files Attached Files
    Last edited by p24leclerc; 11-04-2012 at 11:35 PM.

+ 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