Jump to content
Server Maintenance This Week. ×

Reading Excel Cells with Scribe


This topic is 1869 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Scribe is working out beautifully for what we need to do.  Having one minor annoyance and hoping there is an option I am missing.

When I use the ScribeDocReadValue function on an empty Excel cell, it returns "ERROR."  I'm using this to pull data from a form we had been using in Excel into my FM solution which is replacing that form.  There are many dozen cells and I'd rather not use IF to test for the error on every single one of them.  Is there a way to have Scribe just return "" if the cell is empty?  I mean, it's not technically an error.  Just an empty cell.

Right now I'm running a Find/Replace in my import script once I've pulled in all the data.  Would rather it just pulled in "" instead.

Thanks !!

Link to comment
Share on other sites

Hello,

Can you tell me what the actual error is? You can do so by calling ScribeLastError after the function returns ERROR like so:

Quote

If [ScribeDocReadValue("Some Cell") = "ERROR"]
     Show Custom Dialog ["There was an Error"; ScribeLastError]
End If

 

Link to comment
Share on other sites

This topic is 1869 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.