conos | R package for the joint analysis | Genomics library
kandi X-RAY | conos Summary
kandi X-RAY | conos Summary
R package for the joint analysis of multiple single-cell RNA-seq datasets
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of conos
conos Key Features
conos Examples and Code Snippets
Community Discussions
Trending Discussions on conos
QUESTION
So there are several SO questions and Google results that come up under "On Error GoTo executes once" and in just about every case the recommended solution is to add Err.Clear
or some forum of Resume
to clear the error out. VBA errors can only be handled one at a time, so they need to be cleared.
Having implemented these, as you might have guessed, I am running into this issue where the On Error GoTo
is only executing once and I can't figure out why.
Below is my loop. I did leave some code off the top because there is quite a bit of it and it isn't relevant. Mostly user prompts and making arrays. To explain a little what is going on, conos()
is an array containing the values of a specific column. Based on a segment of the filename, it searches for the code in the array, to get its index, which corresponds to the row.
If there isn't a Match
it triggers the error. That just means there is a file, but no contact to send it to. It should skip to NoContact
and create a list of these files.
So with my files, the first has a contact and generates the email, the second does not and skips to NoContact
and adds the file to the list. Five more run with contacts and then it gets to another that should go to NoContact
, but Unable to get the Match property of the WorksheetFunction class
comes up.
It seems the error isn't getting cleared from the first one. Not sure why.
...ANSWER
Answered 2017-Mar-03 at 06:58Err.Clear
just clears the information regarding the last error from the Err
object - it does not exit out of error handling mode.
If an error is detected and your On Error GoTo NoContact
is invoked, your code jumps down to the NoContact
label, and then finally finds it way back to the start of your For Each objFile In objFolder.Files
loop while still in error-handling mode.
If another error occurs while still in error-handling mode, VBA throws the error as it can no longer trap it.
You should structure your code along the lines of
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install conos
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page