Consulting

Results 1 to 3 of 3

Thread: Solved: Small Update For Solved Changing Ranges

  1. #1
    VBAX Contributor
    Joined
    Aug 2007
    Posts
    188
    Location

    Solved: Small Update For Solved Changing Ranges

    Hi P45Cal

    I wondered if it was possible for a small update to the original - I have put the site id's on row1 and leave all columns C3 thru L3 empty - if I enter the ID numbers in column B anthing from row 3 to 53 the Site Id's would copy down to the row where the ID's end. Have attached a sample as is now.

    Regards

    Sooty8

  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 Lastrow As Long
    Dim i As Long

    Application.ScreenUpdating = False

    With ActiveSheet

    Lastrow = .Cells(.Rows.Count, "B").End(xlUp).Row
    For i = 3 To 12

    .Cells(3, i).Resize(Lastrow - 2).Value = .Cells(1, i).Value
    Next i
    End With

    Application.ScreenUpdating = True
    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

  3. #3
    VBAX Contributor
    Joined
    Aug 2007
    Posts
    188
    Location
    Hi Xld

    Thank you for your help - everything now working spot on and exactly as required.

    Regards

    Sooty8

Posting Permissions

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