Excel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-07-19 09:33 PM
I have some data in an excel file which have values like "12345,67889" i.e. numbers with each 5 digits separated by coma. When I import data to collection and export to excel, the value in the excel file are changing to "1,234,567,889". Is there a way I can keep the formatting the same way as "12345,67889" ?
When I check inside the collection they appear to be fine as "12345,67889".
Please advice.
Thanks in advance.
------------------------------
Swetha Devaram
RPA Developer
Health Markets
America/Chicago
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-07-19 07:09 AM
This is because Excel is parsing entered input as number
Edit the Format Cell Action of Excel VBO to :
GetWorkbook(handle,Nothing).ActiveSheet.Range(cellref).NumberFormat = format
Just converted the (cellref,cellref) to (cellref) so we can work on range and not a single cell.
Pass cellref as A:B or whichever column your data will be going into and format as '@' (without quotes) in respective data items
This will convert column A and B into 'Text' columns in excel, then you can write data to it using write collection and excel won't convert your data
------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
16-07-19 02:51 PM
------------------------------
Swetha Devaram
RPA Developer
Health Markets
America/Chicago
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-10-19 03:45 PM
------------------------------
Maneesh Vemula
RPA Specialist
America/New_York
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
25-10-19 09:58 PM
------------------------------
Sandeep Nalla
Senior Consultant
Lateetud Inc
America/New_York
------------------------------
