Results 1 to 7 of 7

Insert row to existing table from userform data macro

Threaded View

  1. #1
    Registered User
    Join Date
    11-10-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Insert row to existing table from userform data macro

    I'm trying to insert a row from a userform data and am having trouble getting the data in the right part of the table. My table is called tractors in the worksheet called tractors.
    Public Sub AddClassTractor_Click()
    Sheets("Tractors").Activate
    NextRow = Application.WorksheetFunction.CountA(Range("Tractors")) + 1
    Cells(NextRow, 1) = MakeModel
    Cells(NextRow, 2) = Daycab Or Sleeper
    Cells(NextRow, 3) = AcqPrice
    Unload Me
    
    End Sub
    
    Private Sub CancelButton_Click()
    Unload Me
    End Sub
    
    Private Sub UserForm_Click()
    
    End Sub

    any help appreciated! thanks
    Last edited by Leith Ross; 11-10-2013 at 09:59 PM. Reason: Added Code Tags

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 11-04-2013, 04:32 PM
  2. Replies: 3
    Last Post: 10-14-2013, 03:06 PM
  3. macro to insert data table
    By a2424 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2012, 11:27 PM
  4. [SOLVED] Userform Button to Add Data to an Existing Table
    By abysva in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-20-2012, 09:36 AM
  5. Userform to modify existing table
    By JDmacroman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2011, 10:02 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