View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default How to resize worksheet

CTRL + a will select the entire worksheet regardless of used range.

To reset the usedrange via code see Debra Dalgleish's site.

http://www.contextures.on.ca/xlfaqApp.html#Unused


Gord Dibben MS Excel MVP

On Tue, 20 Nov 2007 19:06:13 -0800 (PST), shelfish wrote:

Could someone point me in the right direction for how to resize a
worksheet. I have a macro that deletes a lot of rows. After is
finishes, I want to hit "ctrl+A" but it grabs the original number of
uses cells. Make Sense?

I know ASAP utilities already has something like this but I want to
work this function into the middle of a macro.

Thanks in advance,
Shelton