Hello,
I'm new to VBA and had searched through the forums and found the following macro than can be used to delete duplicate rows where the range is dynamic. would you explain to me how does this macro work? what is the meaning of this in particular (strRange = "$A$1:" & ActiveCell.SpecialCells(xlLastCell).Address)
strRange = "$A$1:" & ActiveCell.SpecialCells(xlLastCell).Address
ActiveSheet.Range(strRange).RemoveDuplicates
Thanks
I'm new to VBA and had searched through the forums and found the following macro than can be used to delete duplicate rows where the range is dynamic. would you explain to me how does this macro work? what is the meaning of this in particular (strRange = "$A$1:" & ActiveCell.SpecialCells(xlLastCell).Address)
strRange = "$A$1:" & ActiveCell.SpecialCells(xlLastCell).Address
ActiveSheet.Range(strRange).RemoveDuplicates
Thanks