• 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.

To move the last column to first

JOANA RINCY

New Member
hi...

i need to move the last column in my sheet to first so that the existing first column should be move to next column and correspondingly. Then i should make it in a read only format.Kindly provide with ur solutions
 
Sub Macro1()

'Move last column to first

Range("A1").Select

Selection.End(xlToRight).Select

ActiveSheet.Columns(ActiveCell.Column).EntireColumn.Select

Selection.Cut

Selection.End(xlToLeft).Select

Selection.Insert Shift:=xlToRight


If Not ActiveWorkbook.ReadOnly Then _

ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly


End Sub
 
Back
Top