Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving Column in Excel

Status
Not open for further replies.

astonmak

MIS
Feb 14, 2003
41
0
0
CN
Dear all,

If I want to move the columns(4) to after columns(2) in Excel 2000, Then what is the code will be?

I have try :
WorkSheets("Sheet1").Columns(4).Move after:= WorkSheets("Sheet1").Columns(1)

But it was a error.


Thanks
Aston
 
give this a try:-

Columns("D").Select
Selection.Cut
Columns("C").Select
ActiveSheet.Paste

good luck!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
The Great Date Debate Thread222-368305
File Formats Galore @ or
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top