@ClaytonM
I am checking for a validation for a From (while passing multiple data using for each loop)and after i get the validation message’s,i am storing that to “createPageValid” variable which is of object type .
Need help for the below two points:
while execution:
How to write a data to a particular column in excel.
want check “createPageValid” contains data. if data is there then i want to write that data to a specific column in excel ,if not then write “validation message’s are wrong”
point 2 → when i use IF condition ,“createPageValid” is an object type ,so it cannot convert that to a boolean condition (not sure how to proceed further).
You can use write cell activity to write the data to a particular column. You can give the range accurate to the cell you want to write.
You can use the condition as if(createPageField <> ’ ’ or createPageField = null), in then field, you can give the message box and in else condition you can place the write cell activity mentioned in 1.
Initialize another variable something as Count and give the default value as 1. For every time writing the value to the cell, Increment the value of Count by 1 i.e, in the assign activity → Count = Count + 1. Then, in the write cell activity, give the value as (assuming the column as A) : “A” + Count.ToString.
Then it will increase the row value in the same column.
Try and let me know.
In the If else condition, Wherver you are using the write cell activity, use assign activity and give the values as
Count = Count + 1
While you are writing the cell value, i think you are giving the cell value as “A2”. Try replacing the 2 value dynamically with the count variable as mentioned
You initialized with 1 and increasing the value to 2 before writing the cell. It will be ok. Try and if it is overriding the value of J1, then let me know