Results 1 to 7 of 7

Issue with Cell Numbering

Threaded View

  1. #1
    Registered User
    Join Date
    08-11-2011
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007/ 2010
    Posts
    72

    Issue with Cell Numbering

    Hello All...

    Please see the attached picture.

    What I have are the cell row numbers down the left. They don't line up with what I need, so at cell #4, I've started my first row of data. What I'm trying to do is have the code you see below, fill the first empty row with the data entered from the Userform. However, it sees Row 4 with data from the new row number I put, and the Userform is placing the data at Row 79, which is the first row without any data.

    Please see the code, and let me know what I can do to tweak it...

    Private Sub cmdSubmit_Click()
    Dim NR As Long

    'transfer values to database
        With ActiveWorkbook.Sheets("MngmtTracker")
            NR = .Range("A" & .Rows.Count).End(xlUp).Row + 1
            .Range("B" & NR).Value = txtStudent_Name.Value
            .Range("C" & NR).Value = cboCurrent_Status.Value
            .Range("D" & NR).Value = txtStart_Date.Value
            .Range("E" & NR).Value = cboEA_Name.Value
            .Range("F" & NR).Value = txtPSC.Value
            .Range("G" & NR).Value = txtNotes.Value
        End With
    If there's another way I can phrase this, please let me know.

    Thanks,

    Jared
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

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

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