web services ref tool 2.0 excel compile error

IanC

New Member
Joined
Jan 21, 2004
Messages
12
I'm using the MS Web Services Reference tool to connect to a web service that is described by a WDSL file. I then use MS Web Services to create the necessary classes to connect to the web service.

When I compile the classes it generates I get a syntax error message (expected identifier) on the statement...

Public type As String

..seems pretty harmless, but I get the same error when I put this in a new function on its own. There is obviously something fundamentally wrong with this statement, but I can't see what it is.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Type is a keyword in VBA (for declaring your own Types) so use another variable name (eg strType).
HTH
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,580
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top