Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default clear object

Hi, I have created an object "Orders" with twenty properties.

Is there any instruction I can use to clear all the properties of the object
without having to go
Orders.OrderID=""
Orders.AttemptID=""
etc.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default clear object

Have you tried

set orders = nothing
set orders = new objName

Robin Hammond
www.enhanceddatasystems.com

"Steve" wrote in message
...
Hi, I have created an object "Orders" with twenty properties.

Is there any instruction I can use to clear all the properties of the

object
without having to go
Orders.OrderID=""
Orders.AttemptID=""
etc.

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default clear object

Much obliged.
Thankyou


"Robin Hammond" wrote in message
...
Have you tried

set orders = nothing
set orders = new objName

Robin Hammond
www.enhanceddatasystems.com

"Steve" wrote in message
...
Hi, I have created an object "Orders" with twenty properties.

Is there any instruction I can use to clear all the properties of the

object
without having to go
Orders.OrderID=""
Orders.AttemptID=""
etc.

Thanks






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
2 Label Options - Forms Object vs Control Box Object Awrex Excel Discussion (Misc queries) 3 July 17th 09 07:10 PM
Transfer a name from one cell to another but leave clear if clear? Scoober Excel Worksheet Functions 3 May 22nd 09 02:55 AM
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
clear the clear the web page email attachment lines MCrider Excel Discussion (Misc queries) 0 November 11th 07 10:05 PM
Excel 97 - Clear Method Of Range Object Failed Dave Peterson[_3_] Excel Programming 2 September 26th 03 01:56 AM


All times are GMT +1. The time now is 04:18 PM.

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

About Us

"It's about Microsoft Excel"