Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default How to change where ctrl-End goes (last cell of spreadsheet)?

I imported a large amount of data, then used a recorded macro to clean
up the spreadsheet by deleting rows. But ctrl-End still goes to some
cell far beyond the lower-right of the current data.

How can I change where ctrl-End goes to?

I would appreciate both VBA and Excel keyboard instructions. I intend
to incorporate this into my clean-up macro. But I would like to be
able to do this manually sometimes.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default How to change where ctrl-End goes (last cell of spreadsheet)?

Assuming apart from values there were no formats in any rows/columns
below/to-right of those you deleted, unfortunately, the only way to reset
the 'Last cell' is to programmatically call .UsedRange, eg simply

ActiveSheet.UsedRange ' typically works but not in all scenarios

Manually the only way I know to reset the Last Cell is to save the file.

Regards,
Peter T

wrote in message
oups.com...
I imported a large amount of data, then used a recorded macro to clean
up the spreadsheet by deleting rows. But ctrl-End still goes to some
cell far beyond the lower-right of the current data.

How can I change where ctrl-End goes to?

I would appreciate both VBA and Excel keyboard instructions. I intend
to incorporate this into my clean-up macro. But I would like to be
able to do this manually sometimes.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default How to change where ctrl-End goes (last cell of spreadsheet)?

On Sep 3, 1:33 am, "Peter T" <peter_t@discussions wrote:
wrote:
How can I change where ctrl-End goes to?

[....]
ActiveSheet.UsedRange ' typically works but not in all scenarios


Works great for me. Just want I needed. Thanks much.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 471
Default How to change where ctrl-End goes (last cell of spreadsheet)?

I wrote this sub:

Sub ResetUsedRange()
ActiveSheet.UsedRange
End Sub

Then i place my cursor in the cell I want to be the end and execute the
macro and nothing changes. Ideas?


" wrote:

On Sep 3, 1:33 am, "Peter T" <peter_t@discussions wrote:
wrote:
How can I change where ctrl-End goes to?

[....]
ActiveSheet.UsedRange ' typically works but not in all scenarios


Works great for me. Just want I needed. Thanks much.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default How to change where ctrl-End goes (last cell of spreadsheet)?

UsedRange is read-only. You need to enter something in the cell you
want to be the "end" to make it so.

Mark Lincoln

On Oct 2, 11:43 am, Mike H. wrote:
I wrote this sub:

Sub ResetUsedRange()
ActiveSheet.UsedRange
End Sub

Then i place my cursor in the cell I want to be the end and execute the
macro and nothing changes. Ideas?



" wrote:
On Sep 3, 1:33 am, "Peter T" <peter_t@discussions wrote:
wrote:
How can I change where ctrl-End goes to?
[....]
ActiveSheet.UsedRange ' typically works but not in all scenarios


Works great for me. Just want I needed. Thanks much.- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 471
Default How to change where ctrl-End goes (last cell of spreadsheet)?

Okay, so I enter something in the cell I wish to make the last cell and then
execute the sub and nothing happens. Am I missing something or how do you
"Make it so"?

"Mark Lincoln" wrote:

UsedRange is read-only. You need to enter something in the cell you
want to be the "end" to make it so.

Mark Lincoln

On Oct 2, 11:43 am, Mike H. wrote:
I wrote this sub:

Sub ResetUsedRange()
ActiveSheet.UsedRange
End Sub

Then i place my cursor in the cell I want to be the end and execute the
macro and nothing changes. Ideas?



" wrote:
On Sep 3, 1:33 am, "Peter T" <peter_t@discussions wrote:
wrote:
How can I change where ctrl-End goes to?
[....]
ActiveSheet.UsedRange ' typically works but not in all scenarios


Works great for me. Just want I needed. Thanks much.- Hide quoted text -


- Show quoted text -




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
How do I change the color of the cell marquee when using Ctrl F Mark-Sydney Excel Discussion (Misc queries) 3 January 14th 09 10:52 AM
Change cell which is the spreadsheet End Hairy Hurdler New Users to Excel 5 February 16th 06 05:15 PM
How do I change the end cell (Ctrl end) in a excel spreadsheet? tusk Excel Worksheet Functions 2 December 12th 05 11:46 AM
How do I move the end of the spreadsheet place where (ctrl + end). onthe_brink Excel Discussion (Misc queries) 5 February 9th 05 06:25 PM
Excel can't find the end of the spreadsheet (Ctrl+end) verc Excel Worksheet Functions 2 November 2nd 04 06:51 AM


All times are GMT +1. The time now is 11:33 AM.

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"