Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

How to handle a VBA error pop up

$
0
0

I am using the following script to unlock the sheets in a workbook:

Sub WorksheetsUnlock(sheetName1, sheetName2)
Worksheets(sheetName1).Unprotect “ABC”
Worksheets(sheetName2).Unprotect “ABC”

End Sub

I want to handle a situation where one or both sheets are not found. I am getting a pop up with the error. How to get this error in a variable?

image

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>