Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Delete cells without selecting?

How about: Cells(n, "A").Resize(, 7).Delete xlShiftUp

--
Rob van Gelder - http://www.vangelder.co.nz/excel


wrote in message news:WijHd.18701$B95.6487@lakeread02...
All -

I'm doing a For each ... next down column A. When I come across a cell
value I don't like I want to delete that cell and the six to the right,
shifting up. Alternatively I could delete the whole row, which I keep
track of with counter n.

Which is better? And is there a way to either it without Range("A" & n
& ":G" &n).select and then delete xlup?


Thanks in advance.

...best, Hash



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Delete cells without selecting?

Rob -

Thanks. I'll give it a go.

....best, Hash

In article ,
"Rob van Gelder" wrote:

How about: Cells(n, "A").Resize(, 7).Delete xlShiftUp

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 to Delete entire rows by selecting different text in column A Doug[_5_] Excel Discussion (Misc queries) 2 November 20th 09 02:03 PM
Can I delete blank rows from excel without selecting them? rgtest Excel Worksheet Functions 9 February 14th 09 03:12 PM
Selecting every other row to delete or move Jeanne Excel Discussion (Misc queries) 1 April 8th 06 01:53 AM
Selecting an Excel tab, Delete Worksheet command is not active missyjes New Users to Excel 1 September 23rd 05 03:16 PM
Selecting a group of worksheets to delete Ron McCormick[_6_] Excel Programming 4 January 11th 05 11:12 AM


All times are GMT +1. The time now is 07:18 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"