My goal is to take a number that looks like this original number: 123456789 and make it look like this Goal: 123-456-789-000
My problem: VBA has and issue with these two formulas: 1 - =G2 & "-000" & 2- REPLACE(REPLACE(D2,4,0," - "),8,0," - "))
Then I take that range of data(there are 1000s of rows like this) cut and copy it over the original numbers as values***haven't got this far yet but bonus for any who helps with this as well.
I'm sure there is a better way of setting this up. 1st goal is to get it to work 2nd goal is to touch it up in a more presentable/efficient way
Here is my code:
'APN fixing for dashes data select from original numbers
Range("G2").Select
Selection.Value = "REPLACE(REPLACE(D2,4,0," - "),8,0," - "))" 'Put replace formula here ""
Selection.AutoFill Destination:=Range("B2:B" & Range("A" & Rows.Count).End(xlUp).Row)
'APN fixing for adding -000 selects from the above macro to add this to it
Range("H2").Select
Selection.Value = " =G2 & "-000"" 'Put the add text formula here ""
Selection.AutoFill Destination:=Range("H2:H" & Range("A" & Rows.Count).End(xlUp).Row)
Range(Selection, Selection.End(xlDown)).Select
'Copy list of APNs to another range of cell.
bonus this code I haven't made yet, but any help would be great here to*