Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Clearing used range?

I want to clear data, meaning that I delete anything below row 4, en
after say "D"

Right now it jumps to EE10000 as the last cell, eg highest cell.

This code does not work

ws.Rows("200:65536").EntireRow.Delete
ws.Columns("Z:IV").EntireColumn.Delete
ws.UsedRange ' invalid use of property?

Sonnich
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default Clearing used range?

Have a look at http://contextures.com/xlfaqApp.html#Unused

--

HTH

Bob

"jodleren" wrote in message
...
I want to clear data, meaning that I delete anything below row 4, en
after say "D"

Right now it jumps to EE10000 as the last cell, eg highest cell.

This code does not work

ws.Rows("200:65536").EntireRow.Delete
ws.Columns("Z:IV").EntireColumn.Delete
ws.UsedRange ' invalid use of property?

Sonnich



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Clearing used range?

On Mar 17, 11:41*am, "Bob Phillips"
wrote:
Have a look athttp://contextures.com/xlfaqApp.html#Unused

--

HTH

Bob

"jodleren" wrote in message

...

I want to clear data, meaning that I delete anything below row 4, en
after say "D"


Right now it jumps to EE10000 as the last cell, eg highest cell.


This code does not work


ws.Rows("200:65536").EntireRow.Delete
ws.Columns("Z:IV").EntireColumn.Delete
ws.UsedRange ' invalid use of property?


Sonnich


Yes..... does not change anything :)

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
Clearing Row data for a given range Santhosh Pasupuleti Excel Programming 12 September 8th 09 05:58 PM
Clearing contents from a range G. Yamada[_2_] Excel Programming 13 September 25th 08 07:45 PM
Clearing the Contents of a range of cells David A. Excel Programming 2 November 8th 07 05:59 PM
need some help clearing a range Gary Keramidas Excel Programming 4 August 18th 06 03:07 AM
Clearing a Range Ronald Cayne Excel Programming 4 September 12th 04 04:00 AM


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

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"