@Ashwin A.K thanks! but WOW ... seriously, we need to run a macro for this operation? I am quite surprised there isn't a simpler way
Hi @Avrora Keremidchieva ,
After entering data into Excel and closing it, you can run this VBScript code to replace dots with commas:
Function formatColumn(str_wbPath, str_sheetName,str_columnIndex)
Set xlObj = CreateObject("Excel.Application")
xlObj.visible = False
On Error Resume Next
'Filepath and Sheet name goes in here
Set xlFile = xlObj.Workbooks.open(str_wbPath)
Set shName = xlFile.Worksheets(str_sheetName)
'Select Column Index for changing format
xlObj.ActiveSheet.Columns(str_columnIndex).Select.Replace ",", "."
xlObj.ActiveSheet.Range("A1").Select
xlFile.Save
xlFile.Close
xlObj.Quit
If Err.Number <> 0 Then
formatColumn = Err.Description
Else
formatColumn = "Success"
End If
Kind Regards,
Ashwin A.K
Actually you can replace text in Excel using the Excel Advanced: Replace Action, but if you want to target a specific column(s) then you have to use either VBA or VBScript.
Kind Regards,
Ashwin A.K