I have an APF
variable store in columns apf_rev_info_col
I set up its format number with 1 decimal number like this:
Columns(apf_rev_info_col).NumberFormat = "0.0"
Then I want to pick up unique value from this columns, using Application.Unique
like this
unique_info = Application.Unique(Range(Cells(first_row + 1, apf_rev_info_col), Cells(last_row, apf_rev_info_col)))
but unique_info
is a variant and its only keep the value of APF if APF has .0 as decimal number.
I tried unique_info(1, i).NumberFormat = "0.0"
but Subscript out of range.
What can I do to keep the NumberFormat in unique_info, please?