Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() In Excel 2003 the LastCell is reset when UsedRange method is called. This does not happen in Excel2007 Try following macro in Excel2003 and Excel2007 Sub LastCellBug() Cells(1000, 100).Value = 1 Cells(1000, 100).Clear Debug.Print "Before Save" Debug.Print ActiveSheet.UsedRange.Address Debug.Print Cells.SpecialCells(xlCellTypeLastCell).Address ActiveWorkbook.SaveAs "c:\temp.xls" Debug.Print "After Save" Debug.Print ActiveSheet.UsedRange.Address Debug.Print Cells.SpecialCells(xlCellTypeLastCell).Address End Sub -- keepITcool | www.XLsupport.com | keepITcool chello nl | amsterdam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
unhide menu bar in excel - just disappeared | Setting up and Configuration of Excel | |||
Excel 2007 MS Query prompt yields Syntax error | Excel Discussion (Misc queries) | |||
enable automatic refresh | Excel Worksheet Functions | |||
How do I compare excel spreadsheets, tracking the differences? | Excel Worksheet Functions | |||
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER | New Users to Excel |