+ Reply to Thread
Results 1 to 3 of 3

Command button to insert row at intersection in a table

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Florida, United States
    MS-Off Ver
    2010, 2013
    Posts
    2

    Command button to insert row at intersection in a table

    (I would post the workbook, however there is some sensitive info that my supervisor will not let me post) I am working in a bowling alley, and I've created workbooks to help keep track of our inventory. One of the workbooks has a worksheet to keep track of all of our bowling balls. The worksheet has a table with each row as a single bowling ball and columns as the info for that bowling ball (weight [9 lbs- 16 lbs], brand, size, serial number(this would be the "primary key"), date put out on rack). The table is sorted by weight first, then by brand, size, and by serial number (ascending). We are constantly replacing old bowling balls that get cracked, chipped, etc. I would like to have a VBA code for a command button next to each section so that I can insert a blank row at the bottom of that section (ex: clicking on "Add 9 lbs ball" button and it inserts a blank row underneath the last 9 lbs ball). If possible I would like for the button to add the weight into that new row. The most ideal solution is to have a button for each brand (only have 2: Linds or Eagle) "Add Linds 9 lbs Ball" or "Add Eagle 9 lbs Ball". I'm a little familiar with VBA code, however I have not been able to find out how to insert rows through a command button yet. This is for Excel 2010, we have two types of systems with different versions of Excel, but the actual workbook is on Excel 2010 (don't know if that makes a difference)

  2. #2
    Registered User
    Join Date
    11-17-2015
    Location
    Florida, United States
    MS-Off Ver
    2010, 2013
    Posts
    2

    Re: Command button to insert row at intersection in a table

    If I can create a form to insert the info that would be perfect, a textbox for each column (weight, size, brand, serial number, and date) and then insert it into the table where its weight is that would be perfect

  3. #3
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    419

    Re: Command button to insert row at intersection in a table

    The following code is for an OK command button that will insert a row after the last row of the selected weight:
    Please Login or Register  to view this content.

+ 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. how to make command button to insert picture
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2013, 04:45 AM
  2. [SOLVED] Command button to insert row on multiple worksheets
    By Hobsons in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2013, 02:50 AM
  3. [SOLVED] Command button to insert row on multiple worksheets
    By Hobsons in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2013, 09:49 AM
  4. Command Button using VBA, to insert a row with formulas below
    By AlexKost in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2013, 11:50 PM
  5. insert a command button
    By lee_har in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-31-2009, 04:25 AM
  6. Cannot insert command button on spreadsheet
    By johnmac in forum Excel General
    Replies: 12
    Last Post: 09-24-2008, 08:21 AM
  7. Command Button - Insert Lines
    By TjBoiler in forum Excel General
    Replies: 6
    Last Post: 01-29-2007, 10:11 PM
  8. I can't insert a Command Button into my spreadsheet
    By Stephen238 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2005, 04:05 PM

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