Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Word, PowerPoint, Outlook, and Other Office Products > Enum in VBA


Reply
 
Thread Tools Display Modes
  #1  
Old 07-02-2003, 12:04 PM
ammalu ammalu is offline
Freshman
 
Join Date: Jun 2003
Posts: 43
Default Enum in VBA


i have this code in VB:
Public Enum Commodity
Gas = 0
Power = 1
Coal = 2
End Enum

I want to convert this in VBA,but VBA doesnt accept it as i have office '97,so how do i do it..VBA doesnt seem to recoginize the Enum key word

Thanks
Sree
Reply With Quote
  #2  
Old 07-02-2003, 01:54 PM
Ephesians Ephesians is offline
Centurion
 
Join Date: Jun 2003
Location: ON, Canada
Posts: 106
Default

Quote:
Originally Posted by ammalu
i have this code in VB:
Public Enum Commodity
Gas = 0
Power = 1
Coal = 2
End Enum

I want to convert this in VBA,but VBA doesnt accept it as i have office '97,so how do i do it..VBA doesnt seem to recoginize the Enum key word

Thanks
Sree



I was just logging on to find a solution to that myself!

I have
Code:
Public Enum AppBarPos abpLeft = 0& abpTop = 1& abpRight = 2& abpBottom = 3& End Enum
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enum Question... VBDude Miscellaneous Languages 2 07-15-2003 04:14 PM
UserControl Returning a Enum Value jonb76 General 4 04-09-2003 01:09 PM
using enum?? Genna General 9 08-06-2002 04:25 AM
Enum / End Enum Defiance Game Programming 2 06-18-2001 01:02 PM
Enum and End Enum Defiance General 4 06-18-2001 11:14 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->