• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Current Resize query

Hi,

I am trying to resize my selection using current region by 3 rows above the range selected.

Code:
        Dim LastRow, LastCol As Long, rng As Range
    With ActiveSheet
        LastRow = .Cells(.Rows.Count, "A").End(xlUp).Select
'        LastCol = .Cells(1, .Columns.Count).End(xlToLeft).Column
        Selection.CurrentRegion.Select
        'Selectino.resize(
      With Selection.CurrentRegion
            .Cells(1, 1).Resize(Selection.Rows.Count + 5, .Columns.Count).Select
      End With
        Selection.Delete shift:=xlToLeft
    End With
Please advise if this is possible.

Regards,
Sameer
 
Back
Top