Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB.net 'Type' statements are no longer supported

Posted on 2014-04-09
2
Medium Priority
?
574 Views
Last Modified: 2014-04-09
Hi I am trying to convert some VBA code to VB.net to use in an Excel add-in
but get the following error for the code below
'Type' statements are no longer supported; use 'Structure' statements instead.      


Type COPYDATASTRUCT
    dwData As Long
    cbData As Long
    lpData As Long
End Type
0
Comment
Question by:Murray Brown
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 39989694
A direct translation would be:
Public Structure COPYDATASTRUCT
    Public dwData As Long
    Public cbData As Long
    Public lpData As Long
End Structure

Open in new window

0
 

Author Closing Comment

by:Murray Brown
ID: 39989744
Thanks very much
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question