The aim is to copy and paste a phone number into an Output sheet. I need a switch to check between mobile, home and work number to see which one has been supplied, prioritizing the mobile number, and then the home number, with work last.
Within my for each row loop, I currently am using the expression (isEmpty=") with Type argument Boolean, then using True and False for the different paths. Issue is the cells aren’t being checked to see if they are empty, as the work numbers are the only numbers being posted, even with the empty cells.
Yes, however before it even gets to work numbers it should be prioritizing mobile number column. For some reason it isn’t checking if the mobile number column (K) is empty or not and just copy and pasting the entire work number column.
We need to use ReadCell activity instead of ReadCellFormula activity because ReadCellFormula returns empty if there is no formula (even there is data).
Then you need to change type of isEmpty from String to GenericValue, (and might be modift from isEmpty to isEmpty.ToString
The Issue I was having with Read Cell activity was that I only have access to the read cell activity that includes the workbook path, so I couldn’t have it inside the excel application scope as the file would be already open. I have seen people use one that doesn’t have the workbook path included but I have updated everything and made sure I have the correct packages installed but seem to still not have that version. Should I just use the read cells outside of the excel application scope then?
So I followed everything you said, I checked the debugger, isEmpty now has the value of Null. But when it gets to the switch, I get an error about object reference not set to an instance of an object. When it ran it worked perfectly for 3 rows of the For Each loop, then I got the error.