Consulting

Results 1 to 3 of 3

Thread: Query on selection.column

  1. #1

    Query on selection.column

    Dear All,

    I want to merge the data of column B with the selected column
    (I use the cursor to point it), I know the usage .Range(Selection.Column & I)
    is not correct... May I know how should I correct it? THX

    With activesheet
    For I = 2 To .Cells(.Rows.Count, "A").End(xlUp).Row
     ...........
    .Range("B" & I) & " " &.Range(Selection.Column & I) <-----
    .............
    End If
    Next I 
    End with

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Is this what you mean

    .Range(.Cells(I, "B"), .Cells(I, Selection.Column)).MergeCells = True

  3. #3
    Yes..
    It's okay now when I use cells... Thanks!

Posting Permissions

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