The information in this article applies to:
SYMPTOMSWhen you run a Microsoft Visual Basic for Applications macro that copies or moves a worksheet or a chart sheet after the last worksheet in the workbook, or if you attempt to do this manually, Microsoft Excel does not insert the copied or moved worksheet after the last worksheet in the workbook. CAUSEThis behavior occurs when the last worksheet in the workbook is hidden. WORKAROUND
To prevent this behavior from occurring, move all hidden sheets to the
front in the order of sheet tabs in the workbook. To do this manually,
unhide all hidden sheets, drag the sheet tabs to the left (in front of the
other tabs), and then rehide the sheets.
http://www.microsoft.com/support/supportnet/overview/overview.aspAlternatively, you can use the following Visual Basic for Applications macro to move all hidden sheets to the beginning of the workbook:
STATUSThis behavior is by design of Microsoft Excel 98 Macintosh Edition. MORE INFORMATION
If Microsoft Excel, you can use the Copy and Move methods within a Visual
Basic macro to copy or move sheets within a single workbook or to another
workbook. You can also copy or move sheets by clicking Move Or Copy Sheet
on the Edit menu.
-or-
In Microsoft Excel 98 Macintosh Edition, if you run a macro that contains
either of these commands, and the last sheet in the workbook is hidden, the
copied or moved sheet is not inserted at the end of the workbook. Instead,
the sheet is moved to the right of the last visible sheet in the workbook.
The same behavior applies if you click "Move or Copy Sheet" on the Edit menu, click "(move to end)," and then click OK. In Microsoft Excel 98 Macintosh Edition, the copied or moved sheet is moved to the right of the last visible sheet in the workbook. In earlier versions of Microsoft Excel, the copied or moved sheet is moved to the end of the workbook. Additional query words: XL98
Keywords : kbprg kbdta xlui OffVBA xlvbmigrate |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |