Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Talking to a class or type between 2 sheets

Hi

I'm trying to write some VBA code that will let one sheet fill eigther a
user defined type or class with values,
and then I need a second sheet to be able to get that information.

The problem I have is that VBA will not let me declare eigther a class or
Type as public
and when I make it a property I get a run time error.
If I try to write a function so the second sheet can copy the type or class,
I also get errors

So can anyone show me how this is done?

Thanks Torben




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.735 / Virus Database: 489 - Release Date: 06/08/2004


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Talking to a class or type between 2 sheets

http://groups.google.com/groups?as_q...rson&lr=&hl=en

make the URL all one line (in notepad) and then paste in the nagivation box
of your browser. Chip Pearson has posted some good explanations and
examples on using classes for this type of thing.

--
Regards,
Tom Ogilvy

"Torben Laursen" wrote in message
...
Hi

I'm trying to write some VBA code that will let one sheet fill eigther a
user defined type or class with values,
and then I need a second sheet to be able to get that information.

The problem I have is that VBA will not let me declare eigther a class or
Type as public
and when I make it a property I get a run time error.
If I try to write a function so the second sheet can copy the type or

class,
I also get errors

So can anyone show me how this is done?

Thanks Torben




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.735 / Virus Database: 489 - Release Date: 06/08/2004




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Not Talking To Outlook [Email Settings] wkwork Excel Discussion (Misc queries) 1 September 1st 05 07:21 PM
Excel and Access talking GJR3599 Excel Discussion (Misc queries) 0 March 29th 05 04:59 PM
Talking to a Perl script hgrove[_6_] Excel Programming 0 July 20th 04 01:19 AM
Using Property Let with a Type as member of a Class Ken Dahlberg Excel Programming 5 December 21st 03 05:57 AM
Can I create in VBA a class with instancing type different from 1 and 2? Dmitry V. Petkun Excel Programming 2 November 4th 03 05:31 PM


All times are GMT +1. The time now is 11:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"