Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-06-2015, 08:27 AM
shg shg is offline how can I modify this macro to work on another column besides "A" Windows 7 64bit how can I modify this macro to work on another column besides "A" Office 2010 32bit
Advanced Beginner
 
Join Date: Oct 2015
Posts: 55
shg is on a distinguished road
Default

One way:

Code:
Sub luxation()
  Dim r             As Range
  Dim iRow          As Long
  Dim iCol          As Long
 
  Set r = ActiveSheet.UsedRange
 
  For iCol = 1 To r.Columns.Count
    For iRow = r.Rows.Count To 2 Step -1
      If r(iRow, iCol).Value2 = r(iRow - 1, iCol).Value2 Then r(iRow, iCol).ClearContents
     Next iRow
  Next iCol
End Sub
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with conditional formatting & returning "Pass" / "Fail Results" in a Column N mikey386 Excel 2 12-11-2014 01:14 PM
remove repeated words with " macro " or " wild cards " in texts with parentheses and commas jocke321 Word VBA 2 12-10-2014 11:27 AM
Modify "preset" animations in PowerPoint 2013 ialpawsv PowerPoint 1 11-26-2014 02:23 PM
Outlook 2003, Modify default "entry type" for new journal entries narichardson Outlook 5 03-14-2012 08:34 AM
how can I modify this macro to work on another column besides "A" How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft