Forum Discussion
Jeff_JPK
Jul 12, 2023Copper Contributor
Macro to edit the current cell
I export a report from our ERP system to Excel. Our job numbers use letters to represent iterations of the job of the format 12345E-01. When this is exported to Excel, it is displayed as 1.23E+03, an...
- Jul 12, 2023
Sub E_Jobs() ActiveCell.Value = "'" & Replace(ActiveCell.Value, ".", "") & "E-01" ActiveCell.Offset(1).Select End Sub
HansVogelaar
Jul 12, 2023MVP
Sub E_Jobs()
ActiveCell.Value = "'" & Replace(ActiveCell.Value, ".", "") & "E-01"
ActiveCell.Offset(1).Select
End Sub
Jeff_JPK
Jul 12, 2023Copper Contributor
Thank you Hans! Works like a charm!