Solved

shared function in Visual Basic 6 (outlook macro)

Posted on 2007-03-19
3
170 Views
Last Modified: 2012-06-21
Hi there,

I am writing an outlook macro in Visual Basic 6 and I apparently can't make a shared function. I've createrd a class module in my project and when I write in it, for example, the single line

Private shared function hello()

I get a compilation error just after pressing "Enter" :
   compilation Error :
   Expected : identifier

What's wrong with the word "shared" ?

Thx
0
Comment
Question by:B_B_Boris
  • 2
3 Comments
 
LVL 26

Expert Comment

by:EDDYKT
ID: 18747174
don't think vb6 support shared
0
 
LVL 26

Accepted Solution

by:
EDDYKT earned 500 total points
ID: 18747183
you can use

public function hello()
0
 

Author Comment

by:B_B_Boris
ID: 18749074
I've got to do without shared stuff then ...

Thx for your message anyway
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

685 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