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: 54
Default Removing dupes without selecting column

Please assist.

I want to remove dupes from my subtotal columns without having to select the
column

Dim oRange As Object
Dim oP_Value As Object
Dim r_counter As Integer
r_counter = 0

Set oRange = Selection
Set oP_Value = oRange.Cells(1)


For r_counter = 2 To oRange.Count
If oRange.Cells(1).Value = InStr(1, "total") Then
If oP_Value.Cells(1).Value = oRange.Cells(r_counter).Value Then
oRange.Cells(r_counter).ClearContents
Else
Set oP_Value = oRange.Cells(r_counter)
End If
Next r_counter
Exit Sub


Thanks
 
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
Removing one column of data and adding another column Rodders Excel Discussion (Misc queries) 1 August 26th 09 08:25 AM
converting a text column to a number column & removing the ' Gayle from CyberCore Excel Worksheet Functions 2 August 21st 09 05:00 PM
Finding Info from Column A and Removing it from Column B Johnny B[_2_] Excel Discussion (Misc queries) 2 March 28th 07 12:06 PM
How can I check for dupes in more than one column in excel? latwood Excel Worksheet Functions 2 October 23rd 06 08:42 PM
delete dupes in column BigRog Excel Programming 3 March 6th 04 06:13 AM


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