Results 1 to 7 of 7

Macro Add row & add values in 2 different textbox

Threaded View

feroguz Macro Add row & add values in... 11-20-2012, 05:07 PM
AlphaFrog Re: Macro Add row & add... 11-20-2012, 07:00 PM
feroguz Re: Macro Add row & add... 11-20-2012, 07:06 PM
AlphaFrog Re: Macro Add row & add... 11-20-2012, 07:35 PM
feroguz Re: Macro Add row & add... 11-20-2012, 08:16 PM
AlphaFrog Re: Macro Add row & add... 11-20-2012, 08:31 PM
feroguz Re: Macro Add row & add... 11-21-2012, 11:21 AM
  1. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: Macro Add row & add values in 2 different textbox

    This adds the values to the next empty row in columns D and F when you click the command button. Is that what you want?

    Private Sub CommandButton1_Click()
        With Cells.Find("*", , , , xlByRows, xlPrevious)
            Range("D" & .row).Value = TextBox2.Value
            Range("F" & .row).Value = TextBox3.Value
        End With
        Unload Me
    End Sub
    Last edited by AlphaFrog; 11-20-2012 at 07:44 PM. Reason: typo

Thread Information

Users Browsing this Thread

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

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