Solved

VB.net 'Type' statements are no longer supported

Posted on 2014-04-09
2
492 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:murbro
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 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:murbro
ID: 39989744
Thanks very much
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now