I'm copying columns from one spreadsheet to another:
Set sourceColumn = wb.Worksheets(cmb).Columns(wb.Sheets(cmb).Rows(1).Find(Form.ComboBox2.Value).Column)
Set targetColumn = Workbooks("B.xlsm").ActiveSheet.Columns("A")
sourceColumn.Copy Destination:=targetColumn
After copying, I want to convert the number formatting of the targetColumn to number.
In reference from this post, I tried Workbooks("B.xlsm").ActiveSheet.Columns("1").NumberFormat = "0"
but that isnt changing the column formatting from text to number.
Any ideas whats going awry?