Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I not delete an enitre row when running a duplicate delete.

I'm running a macro that deletes an entire row when it is duplicated.
However, I only want the macro to delete columns C to G. How do I adjust the
macro to delete only between these columns and move the cells up. Help would
be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default How do I not delete an enitre row when running a duplicate delete.

firstcol = "C"
lastcol = "G"
killrow = 5

Range(Cells(killrow, firstcol), Cells(killrow, lastcol)).Delete xlShiftUp

"TonygWillfe" wrote:

I'm running a macro that deletes an entire row when it is duplicated.
However, I only want the macro to delete columns C to G. How do I adjust the
macro to delete only between these columns and move the cells up. Help would
be greatly appreciated.

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
delete row if duplicate Vass[_5_] Excel Discussion (Misc queries) 4 October 22nd 09 03:53 PM
How do you delete duplicate addresses, but keep duplicate names? Shelly Excel Discussion (Misc queries) 1 August 28th 06 10:36 PM
Delete Duplicate chris Excel Discussion (Misc queries) 3 February 20th 06 10:35 PM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette[_4_] Excel Programming 2 September 21st 04 02:40 PM
Delete Macro After Running Bill Oertell Excel Programming 5 December 24th 03 03:48 AM


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