+ Reply to Thread
Results 1 to 12 of 12

Inserting different tables by changing cell value

  1. #1
    Registered User
    Join Date
    07-06-2018
    Location
    croatia
    MS-Off Ver
    2016
    Posts
    27

    Question Inserting different tables by changing cell value

    I have lot of tables for contracts with names of products and prices. Depending of contract (on sheet contracts) i choose i need to insert table from sheet with the name of that contract. It would be ideal when it would be posible to somehow make dropdown list of that products and than insert only chosen name and price on sheet order (on the yellow part). I really dont have idea how to do it, or is it possible to do that..
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Inserting different tables by changing cell value

    On you "order" sheet you have 10 rows highlighted in yellow. On the sheets with the name of that contract, you have more than 100 rows. Do you want to insert all the rows from the sheets with the name of that contract or just 10 rows? If just 10 rows, which rows?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    07-06-2018
    Location
    croatia
    MS-Off Ver
    2016
    Posts
    27

    Re: Inserting different tables by changing cell value

    If it is posible to be drop down list 10 rows would be enough.. and if not i would insert all rows from the sheet with the name of contract.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Inserting different tables by changing cell value

    It is possible to insert 10 rows but I need to know which 10 rows from the sheets with the name of that contract. Do you want rows 3 to 12 or rows 4 to 13 …….. or rows 121 to 130?

  5. #5
    Registered User
    Join Date
    07-06-2018
    Location
    croatia
    MS-Off Ver
    2016
    Posts
    27

    Re: Inserting different tables by changing cell value

    Maybe i didnt explain myself good enough.. if it could be in that yellow part a drop down list in every row .. or some popup table..and than to choose from table of contract.. if not that way i would insert the whole table.. ofcourse than it wouldnt be 10 rows.
    Thank you for your answers...

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Inserting different tables by changing cell value

    What items would you want in the drop down list in every yellow row? We could put a drop down list of the sheets in cell C30 to select the sheet.

  7. #7
    Registered User
    Join Date
    07-06-2018
    Location
    croatia
    MS-Off Ver
    2016
    Posts
    27

    Re: Inserting different tables by changing cell value

    i thought something like that.. just i put the command button
    Private Sub CommandButton1_Click()
    Sheets(Range("c30").Value).Visible = True
    Sheets(Range("c30").Value).Activate
    End Sub

    to select the sheet..

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Inserting different tables by changing cell value

    You don't need a command button. The sheet can be chosen automatically by clicking on a drop down in C30. That won't be a problem. I just need to know which 10 rows from each sheet you want to copy. If you want all the rows, that's not a problem either.

  9. #9
    Registered User
    Join Date
    07-06-2018
    Location
    croatia
    MS-Off Ver
    2016
    Posts
    27

    Re: Inserting different tables by changing cell value

    Depends what someone wants to order.. maybe just one row, maybe 10... so i cant know wich rows.. maybe to have checkboxes in every row.. than copy selected?

  10. #10
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Inserting different tables by changing cell value

    Try the attached file. I have unmerged the merged cells in the order sheet. You should avoid using merged cells because they create problems for Excel macros. Click on the drop down in C30 to select a sheet. You will notice I have added another column named "Select (x)". Simply place an "x" (lowercase) and exit the cell. That information will be copied to the order sheet. In this manner the user can choose any row up to 10 rows.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    07-06-2018
    Location
    croatia
    MS-Off Ver
    2016
    Posts
    27

    Re: Inserting different tables by changing cell value

    This is great... thenk you very much!!

  12. #12
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Inserting different tables by changing cell value

    You are very welcome.

+ 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] Inserting different tables depending on the cell value?
    By andyzz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2014, 04:18 AM
  2. [SOLVED] Inserting Row without changing reference cell on another sheet
    By freyrand in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2014, 10:25 PM
  3. Inserting seconds without the cell changing the value
    By madsdegn in forum Excel General
    Replies: 3
    Last Post: 10-24-2012, 06:06 AM
  4. [SOLVED] Inserting new macro - Changing Cell Colour - Formula to update date
    By Rhiannon25 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-11-2012, 11:11 PM
  5. VBA Code - Changing filters of several pivot tables based on cell values
    By kriskrispies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2010, 08:49 PM
  6. Changing cell reference in a formula when inserting a row
    By Apel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2009, 01:46 AM
  7. Replies: 4
    Last Post: 03-23-2009, 10:11 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