Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Can't create a new instance of the Range class

Hi all,

why is the following is invalid code?

Sub foo()

Dim MyRange As Range
Set MyRange = New Range

End Sub

The New statement works with a class defined in a Class Module, but it
looks like it doesn't work with classes in the Excel Object Model. Is
there any workaround for this? Thanks,

Best Regards

Sergio Rossi
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
instance of class from dll, is it possible?? rchiuhk Excel Programming 0 October 7th 09 10:29 AM
Name of Class instance Balmain Bushwalker[_2_] Excel Programming 2 October 25th 07 11:22 AM
Scripting Dictionary in a class instance Art Excel Programming 3 March 28th 07 01:20 PM
Ensure single class instance but with multiple references to it [email protected] Excel Programming 4 January 6th 06 02:31 AM
Class Instance Identifier Chip Pearson Excel Programming 6 June 29th 04 09:34 AM


All times are GMT +1. The time now is 06:15 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"