LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default RANGE MACRO

I am trying to compare two ranges of data. if those ranges are the same i
would like to delete one of them because it is a dup. How do i do this in
macros. what would be the syntax. i tried:
Range("A3:E3").Select
ActiveWorkbook.Names.Add Name:="RANGE1", RefersToR1C1:=Selection
Range("A4:E4").Select
ActiveWorkbook.Names.Add Name:="RANGE2", RefersToR1C1:=Selection
If Range("RANGE1") = Range("RANGE2") Then Range("RANGE2").Delete
 
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
Macro deletes row in range, macro then skips the row moved up steven.holloway Excel Discussion (Misc queries) 8 June 11th 08 11:40 AM
Macro to copy a specified range to a variable range SWT Excel Programming 4 October 21st 05 08:24 PM
Macro won't execute when "For Each 'range' in 'range'" is added Bill Dika Excel Programming 1 July 12th 04 07:33 PM
Set Range in one macro to range in another Tim Excel Programming 0 February 25th 04 12:16 PM
Macro to input formula in range based on another range Peter Atherton Excel Programming 0 October 9th 03 12:47 AM


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