Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Moving sheets
How do I write a macro to move the activesheet to the end of the active
workbook. Thanks Greg |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Moving sheets
ActiveSheet.Move After:=Sheets(Sheets.Count)
HTH -- AP "Greg" a écrit dans le message de ... How do I write a macro to move the activesheet to the end of the active workbook. Thanks Greg |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Moving sheets
Sub macro1() Dim sheetnames() As String Dim sheetcount As Integer Dim i As Integer sheetcount = ActiveWorkbook.Sheets.Count ReDim sheetnames(1 To sheetcount) For i = 1 To sheetcount sheetnames(i) = ActiveWorkbook.Sheets(i).Name Next i ActiveWorkbook.ActiveSheet.Select ActiveWorkbook.ActiveSheet.Move After:=Sheets(sheetcount) End Sub -- ReD-DevIL ------------------------------------------------------------------------ ReD-DevIL's Profile: http://www.excelforum.com/member.php...o&userid=32624 View this thread: http://www.excelforum.com/showthread...hreadid=525594 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Moving Data between sheets in the same workbook and moving data between Workbooks. | Excel Worksheet Functions | |||
Moving Between Sheets | Excel Discussion (Misc queries) | |||
Moving sheets | Excel Programming | |||
Moving sheets | Excel Programming | |||
Moving through sheets | Excel Programming |