Hello!
I have poked around the forums and found variations of what I need, but I can't find or correctly piece together exactly what I need.
This portion is part of a larger code, so manually copying and pasting values is not an option for me.
I have a range of cells starting at F92 and ends with an unknown/varying row number (all in column F). These cells contain a formula, so when I remove duplicates, the formula takes over and I cannot see the unique values. I was thinking if I copy and pasted the values (either in column F or into a new column, whichever is better) then that would resolve my issue with removing duplicates.
Here is what I have (but it copies the formula into column G as is):
Just to be clear, I have cells with a formula from F92 - unknown/varying. I want to copy and paste values for this range, and then be able to remove duplicates.
I'm new to VBA, so if you could provide an explanation with your code I would greatly appreciate that as well! Thanks in advance.
I have poked around the forums and found variations of what I need, but I can't find or correctly piece together exactly what I need.
This portion is part of a larger code, so manually copying and pasting values is not an option for me.
I have a range of cells starting at F92 and ends with an unknown/varying row number (all in column F). These cells contain a formula, so when I remove duplicates, the formula takes over and I cannot see the unique values. I was thinking if I copy and pasted the values (either in column F or into a new column, whichever is better) then that would resolve my issue with removing duplicates.
Here is what I have (but it copies the formula into column G as is):
Code:
Range("F92:F" & Cells(Rows.Count, "F").End(xlUp).Row).Copy _
Destination:=Cells(Rows.Count, "G").End(xlUp).Offset(1)
Range("G92:G" & Range("G" & Rows.Count).End(xlUp).Row).RemoveDuplicates Array(1), xlYes
Just to be clear, I have cells with a formula from F92 - unknown/varying. I want to copy and paste values for this range, and then be able to remove duplicates.
I'm new to VBA, so if you could provide an explanation with your code I would greatly appreciate that as well! Thanks in advance.