+ Reply to Thread
Results 1 to 3 of 3

Add cell values to table

  1. #1
    Registered User
    Join Date
    09-19-2022
    Location
    Delft
    MS-Off Ver
    office 365
    Posts
    12

    Add cell values to table

    Hello,

    I am wondering how I can make a macro that adds a cell value to a column of a table. I have an excel sheet that creates invoices. But I want to save the date, the price and the number of the invoice in a table in another sheet using VBA.

    I got 2 pictures so it is understandable what I mean.

    Kind regards!

    invoice_example.png
    table_example.png

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Add cell values to table

    Create a button and add the following code (you'll need to amend sheet names and range values but it should work

    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    09-19-2022
    Location
    Delft
    MS-Off Ver
    office 365
    Posts
    12

    Re: Add cell values to table

    Thankyou!! It almost works. But after I tweaked it a little I got an error and I do not know how to solve it. I posted the error in this message. Can you tell me what is wrong?

    Attachment 797638
    Attachment 797639

+ 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. [SOLVED] formula to look up a cell value in a table and sum up total corresponing cell values
    By lostinspace1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-12-2022, 12:59 PM
  2. Return value from array in table based on cell values in separate table
    By CapRavOr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2021, 11:04 PM
  3. Table Resizing (based on two cell values outside of table)
    By jrabelo in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-24-2020, 10:38 AM
  4. Copy cell values, add a new row on table and paste them at the bottom of a table
    By ApexDmac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2019, 11:00 AM
  5. [SOLVED] Using CSV cell values to reference a table and return matches in CSV format in new cell
    By fjyoder in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2017, 07:10 PM
  6. Replies: 9
    Last Post: 09-07-2016, 11:39 AM
  7. Replies: 2
    Last Post: 12-14-2012, 01:17 PM

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