Forum Discussion
dbattaglia
Contributor
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
jloyzagawh
9 years agoContributor
Yes its vba it seems - is there a jscript way of doing the same?
- NisHera9 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(.........)
- dbattaglia9 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?
Related Content
- 11 years agosbkeenan
- 7 years agoNisHera
- 13 years agoArmandsBruns
- 13 years agojyothi_priya