ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to resize worksheet (https://www.excelbanter.com/excel-programming/401468-how-resize-worksheet.html)

shelfish

How to resize worksheet
 
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

Gord Dibben

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



shelfish

How to resize worksheet
 
Thanks for the link, I appreciate it. But for the record, I just tried
it again on a fresh workbook and ctrl+a only selected the used range.
I'm using 2k3. It must be something in the settings.

Anyway, thanks.


All times are GMT +1. The time now is 10:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com