• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 602
  • Last Modified:

VB.net 'Type' statements are no longer supported

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
Murray Brown
Asked:
Murray Brown
1 Solution
 
Carl TawnSystems and Integration DeveloperCommented:
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
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now