Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default Last Cell Scroll Bar Problem

I've got the familiar problem of the last cell of data being row 6000, but
the scroll bar going down to 17000.

Now, I 've tried the Debra Dalglish method:
http://www.contextures.on.ca/xlfaqApp.html#Unused

....and the Dave McRitchie attributed one:

Sub makelastcell()
' David McRitchie, posted 2000-11-30 (see lastcell.htm)
' ---- tested only on Excel 2000, should work also on Excel 97 ------
Dim x As Integer
On Error GoTo 0
x = MsgBox("Do you want the activecell to become " & _
"the lastcell" & Chr(10) & Chr(10) & _
"Press OK to Eliminate all cells beyond " _
& ActiveCell.Address(0, 0) & Chr(10) & _
"Press CANCEL to leave sheet as it is", _
vbOKCancel + vbCritical + vbDefaultButton2)
If x = vbCancel Then Exit Sub
Range(ActiveCell.Row + 1 & ":" & 65536).Delete
Range(Cells(1, ActiveCell.Column + 1), Cells(65536, 256)).Delete
Beep
ActiveWorkbook.Save
Beep
End Sub


......but still no joy. Is there anything else to try (note I've deleted all
named ranges)? One point is that the columns carry formating (border and
fill) rather than the individual cells.

I'm using Excel 2003 by the way.

Best regards

John


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Last Cell Scroll Bar Problem

Those methods are pretty much it.

You might need to experiment with them (those methods) on new blank sheet,
and try to discover what is causing your problem.

--
Regards,
Tom Ogilvy

"John" wrote in message
...
I've got the familiar problem of the last cell of data being row 6000, but
the scroll bar going down to 17000.

Now, I 've tried the Debra Dalglish method:
http://www.contextures.on.ca/xlfaqApp.html#Unused

...and the Dave McRitchie attributed one:

Sub makelastcell()
' David McRitchie, posted 2000-11-30 (see lastcell.htm)
' ---- tested only on Excel 2000, should work also on Excel 97 ------
Dim x As Integer
On Error GoTo 0
x = MsgBox("Do you want the activecell to become " & _
"the lastcell" & Chr(10) & Chr(10) & _
"Press OK to Eliminate all cells beyond " _
& ActiveCell.Address(0, 0) & Chr(10) & _
"Press CANCEL to leave sheet as it is", _
vbOKCancel + vbCritical + vbDefaultButton2)
If x = vbCancel Then Exit Sub
Range(ActiveCell.Row + 1 & ":" & 65536).Delete
Range(Cells(1, ActiveCell.Column + 1), Cells(65536, 256)).Delete
Beep
ActiveWorkbook.Save
Beep
End Sub


.....but still no joy. Is there anything else to try (note I've deleted

all
named ranges)? One point is that the columns carry formating (border and
fill) rather than the individual cells.

I'm using Excel 2003 by the way.

Best regards

John




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
Scroll problem Lawman Excel Discussion (Misc queries) 2 November 20th 08 07:30 PM
Scroll problem Lawman Setting up and Configuration of Excel 2 November 20th 08 07:30 PM
Scroll problem Lawman New Users to Excel 2 November 20th 08 07:30 PM
scroll with arrow keys problem Accounts Diva Excel Worksheet Functions 1 September 4th 08 03:37 AM
Scroll bar problem Luke Excel Discussion (Misc queries) 1 January 21st 05 01:01 PM


All times are GMT +1. The time now is 04:22 AM.

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

About Us

"It's about Microsoft Excel"