Results 1 to 3 of 3

Thread: [RESOLVED] Userforms

  1. #1

    Thread Starter
    Hyperactive Member Greyskull's Avatar
    Join Date
    Dec 2003
    Location
    somewhere in England
    Posts
    382

    Resolved [RESOLVED] Userforms

    I want my invoice system to automatically place a cell's entry down to the next row in the same column as I add another entry to the same cell.

    For example, I press a button which automatically enters some details into the cell, I then press another button which again enters details in the same cell. Now I want the previous entry to be shifted down a row, how do I do this?

    Thanks ,


    Greyskull

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178
    Check for a value in the target cell. If there is one then copy it down. Then put value into target. Something like :-

    If Cells(1, 1).Value <> 0 Then
    Cells(2, 1).Value = Cells(1, 1).Value
    End If
    Cells(1, 1).Value = MyValue
    Regards
    BrianB
    -------------------------------

  3. #3
    New Member
    Join Date
    Dec 2003
    Location
    England
    Posts
    3
    Or you could make it search for the next free cell down, like:
    Sheets("Sheet1").Activate
    If IsEmpty(Range("A2")) Then
    Row = 2
    Else
    Range("A1").End(xlDown).Select
    Row = ActiveCell.Row + 1
    End If
    Cells(Row, 1).Select
    Cells(Row, 1) = TextBox1.Text

    Jim Root, IG

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width