Check if the field is filled with anything in an word standard sheet

Hello!

I have more than 115 different word text files, and in each of them, the person who needs to fill this standard sheet only needs to write in the gray spaces. They cannot type in the other spaces.

The robot needs to check if there’s something in these fields, it can be anything, just not empty or space.

As its a standard sheet, can the robot read only the gray spaces/fields? If not, how can we check if theres anything in these spaces?

Hi,

This could be achieved if you create a template and create bookmarks for every field and then share the same template with all the users who want to fill.

You can get the value of bookmarks using UiPath word activity.

Thanks.

Hey, in the end, I made it another way:

Using the package UiPath.word, I opened the file with Word Application Scope
I used a get attribute to get the pages (Page 1 of 9), to get the number of pages that exist on file (strMaxPage)

Everything below is inside an Do While
As it opens, the first field is always selected, I only need to copy to clipboard and verify if its empty (strResult)
And then used the good old hotkey tab and after, hotkey Right. For some reason, Word doesnt identify just the change of pages if you use only tab, so hotkey Right it is.
After all that, get attribute again on pages to get the page the field is on currently (strCurrentPage)
The condition for the Do While is:
strCurrentPage <> strMaxPage and sResult <> “”

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.