I have made a workflow that copies stock prices from a website into an excel sheet. I managed to do this using the Write Range activity, but Write Range writes the numbers as Generic Values (text in Excel) instead of a proper number format.
This solution has the problem that I am Austrian and we use comma instead of a full stop as the decimal separator. So Cdbl() turns 17,68 into 1768, which is not my desired outcome.
I have tried this tutorial before, but it doesn’t work for me. I think Format Value doesn’t accept my data because I used a string (strKurs) to fetch the numbers from the website.
Is there a way to convert strings into numbers or should I make a change to my workflow so it uses numbers instead of strings?
Another work around you can try will be given below.
Step 1:Create a excel file with just column names alone and set the relavant format for each column by right click on the column name and choose ‘Format Cells’ as in the below inline screenshot.
Step 2: Please copy this formatted excel file to desired location and use this in ‘Write Range’ activity to write the DataTable rows whenever required.