I have 100 rows and 48 columns in the excel in that have lot of empty cells. I want to color the empty cells in the excel.
if have any solutions, Kindly guide me.
thanks in advance.
I have 100 rows and 48 columns in the excel in that have lot of empty cells. I want to color the empty cells in the excel.
if have any solutions, Kindly guide me.
thanks in advance.
Follow the steps
Enumerable.Range(0,48).ToArray
currentrow.ByIndex(currentitem).ToString.Trim.Equals(String.Empty)
Excel.Sheet("sheetname").Range(currentrow.ByIndex(currentitem).Address)
Cheers
Hi Anil,
As we tried the above logics, Got an error in ByIndex function. Attached the workflow sequence for your reference. Kindly assist me to move further.
Thanks in advance.
BlankProcess2 (2).zip (9.3 KB)
What I gave you are the details using excel for each row activity…But I see you read the data and use for each row in datatable…so I modified it as per your logic only…Mode few changes as per the activities you used
BlankProcess2.zip (9.7 KB)
output:
Indexval is the variable assigned to the index property in for each row in datatable…added 2 because 1 for index starting from zero and other for the header. Also have added dt.Columns.Count instead of 48 to make it dynamic for any number of columns
My method is depicted by @Yoichi above , you can try that as well…not much of difference…main is in your’s read the data into datatable in the formers which I provided it uses data directly from excel
cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.