Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Moving sheets in code

I want to perform the action in the code line below:

Worksheets("Clusters Summary Report").Move befo=Worksheets("Cluster 1")

This works fine, but the problem is "Cluster 1" is not always going to be
the first worksheet inj the workbook. I am looking for a say to tell the code
to move sheet "Clusters Summary Report" into the first position in the
workbook so that the first worksheet in the workbook is "Clusters Summary
Report".
Is there a way to do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Moving sheets in code

Worksheets("Clusters Summary Report").Move befo=Worksheets(1)

--
HTH...

Jim Thomlinson


"Ayo" wrote:

I want to perform the action in the code line below:

Worksheets("Clusters Summary Report").Move befo=Worksheets("Cluster 1")

This works fine, but the problem is "Cluster 1" is not always going to be
the first worksheet inj the workbook. I am looking for a say to tell the code
to move sheet "Clusters Summary Report" into the first position in the
workbook so that the first worksheet in the workbook is "Clusters Summary
Report".
Is there a way to do this?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Moving sheets in code

Worksheets("Clusters Summary Report").Move befo=Sheets(1)


Gord Dibben MS Excel MVP

On Tue, 29 Apr 2008 12:45:02 -0700, Ayo wrote:

I want to perform the action in the code line below:

Worksheets("Clusters Summary Report").Move befo=Worksheets("Cluster 1")

This works fine, but the problem is "Cluster 1" is not always going to be
the first worksheet inj the workbook. I am looking for a say to tell the code
to move sheet "Clusters Summary Report" into the first position in the
workbook so that the first worksheet in the workbook is "Clusters Summary
Report".
Is there a way to do this?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Data between sheets in the same workbook and moving data between Workbooks. Alison Brown Excel Worksheet Functions 0 February 10th 09 01:03 AM
Moving sheets Greg[_25_] Excel Programming 2 March 23rd 06 08:28 AM
Moving through sheets izlopez Excel Discussion (Misc queries) 1 January 13th 05 08:33 PM
Moving through sheets Keith Emery Excel Programming 2 June 22nd 04 01:53 PM
moving between sheets aschneid Excel Programming 2 May 11th 04 10:07 AM


All times are GMT +1. The time now is 06:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"