hi, i need to automate the steps:
1.read an excel column ‘cost’.
2.provide the cell (within cost column) color if the cell is >= 4.00
below is the img of cost column.
can anyone plz help! it’s urgent!
hi, i need to automate the steps:
1.read an excel column ‘cost’.
2.provide the cell (within cost column) color if the cell is >= 4.00
below is the img of cost column.
can anyone plz help! it’s urgent!
Hi
Initiate a counter = 1
Read column or read range
iterate it through using For each or For each row in case of datatable(if u use read range)
Assign and increment counter = counter +1
check if the item > 4.0
If greater than 4.0 then use excel application scope and inside it use get cell colour and Provide the column name and “D”+Counter.tostring
I have done a sample workflow and attached here
Sequence1.xaml (8.5 KB)
i’m sorry what is “cdb” in condition-the last step?
when u read the column , it will be of type collection of object. so i am casting it into double for comparing it with 4.0
Hi @new_user - Try convert.ToDouble(cdb(item).ToString) >= 4.0
Thanks,
AK
This one - Try convert.ToDouble(cdb(item.ToString)) >= 4.0
hi
it is “cdbl” and not cdb
use the expression as cdbl(item) , this will work . I have put the same in the xaml workflow which i provided
oh !! okay…tried putting that and it’s not providing the cell color
attaching the file ExcelApplicationScope.xaml (9.6 KB)
@new_user ExcelApplicationScope.xaml (8.6 KB) i made some modifications to your code buddy,just go through it,let me know if any thing goes wrong.
ExcelApplicationScope.xaml (10.0 KB)
please try this workflow
did it work for u?
not working for me
not wrking i think “cost” is a column name in the excel…i tried changing instances of “row” to “column” but it gives an error
@new_user can I have the screenshot of that,actually it has to work.
i have few doubts, could u plz clarify?