Consulting

Results 1 to 2 of 2

Thread: Insert Rows and add Title

  1. #1
    VBAX Regular
    Joined
    Jan 2008
    Posts
    9
    Location

    Question Insert Rows and add Title

    Hopefully someone can help me with this or point me in the right direction

    The end user of the spreadsheet will enter the number of members in a structure (in cell C6).
    I want to create this number of rows beginning in row 9. In the 1st cell of each row I want to have "Member 1", "Member 2" and so on until this list agrees with the user input.

    Thanks in advance for any help you can give.
    Cha

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Public Sub ProcessData()
    Dim i As Long

    With ActiveSheet

    For i = 1 To .Range("C6").Value
    .Range("A9").Cells(i, 1).Value = "Member " & i
    Next i
    End With

    End Sub
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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