Forum Discussion
jloyzagawh
10 years agoContributor
I've read that and it does not have an equivalent for .Find - looked everywhere
dbattaglia
10 years agoContributor
it looks like this function is vba. did you look that up? this might help https://msdn.microsoft.com/en-us/library/office/ff839746.aspx
- jloyzagawh10 years agoContributor
Yes its vba it seems - is there a jscript way of doing the same?
- NisHera10 years agoValued Contributor
The with statement in VBS can be used in such a way as
With MyLabel .Height = 2000 .Width = 2000 .Caption = "This is MyLabel" End With
So the .Find is not a function of VBS but a method in your object "oSearchResult" or simply TC function of Find
Hence in JS you can write oSearchResult.Find(.........)
- dbattaglia10 years agoContributor
jloyzagawh, can you give a little context to your question?
what are you trying to do? convert the existing function to jscript?
can you post the version of the function you are trying to run?