selenium-wrapper-vba icon indicating copy to clipboard operation
selenium-wrapper-vba copied to clipboard

Code encounter compile error

Open Jamespahan1995 opened this issue 1 year ago • 3 comments
trafficstars

In the webdriveroption.cls code I am getting a compile error after importing the file in the vba environment due to the code of Version 1.0 class is coming in vba class module after importing. In webdrover.cls again got the compile error public sub open browser.

Let me know, if I am doing anything wrong here. I followed the steps mentioned on the got after downloading those files.

Jamespahan1995 avatar May 21 '24 08:05 Jamespahan1995

Can you post your error message here?

er-ri avatar May 22 '24 03:05 er-ri

@Jamespahan1995 +1. Im too getting the same error on MS office LTSC professional Plus 2021 while it is working fine in MS office LTSC professional Plus 2019. The error happens with MS excel and even the sample code is not working. @er-ri

Image Image

Issue Description: when tried to import all files webdriveroption.cls goes into modules with the following lines """Attribute VB_Name = "WebDriverOptions" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False"""

automatically removed. Also this line 'VERSION 1.0 CLASS' marked as Red with error 'end of statement'.

Solutions tried: I tried creating a class manually copying the code and pasting the in the newly created class but the same issue happens that

VERSION 1.0 CLASS
Attribute VB_Name = "WebDriverOptions"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False

Have attached the images stating the issue. Upon searching the net some say these are for VB and not for VBA and hence expected. I'm a total beginner, so obviously, I didn't understand it. Is there anyway to mitigate this issue?

sridharstreaks avatar Feb 07 '25 06:02 sridharstreaks