Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,182
Default Copying/cloning an object

Hi Walter,
The work done by the object instance happens in its own separate
procedure from the procedure using the object. So your instantiation
procedure is a reusable utility that your business logic code uses to
process its data, or retrieve data for the business logic code to
process. IOW, it's a 2-way street in terms of how data flows. So...

Dim oIE As Object
Sub GetDataFormIE(<datacontainer,<other args if any)
Set oIE = CreateObject("InternetExplorer.Application")
'//load datacontainer as required
Set oIE = Nothing
End Sub

Optionally:
Dim vIE
Sub GetDataFormIE(<datacontainer,<other args if any)
Set vIE = CreateObject("InternetExplorer.Application")
'//load datacontainer as required
Set vIE = Empty
End Sub

...where your caller procedure will process the contents of
datacontainer. If there's no data then IE didn't give it up; -so check
how you load datacontainer above...

Sub DoThis()
Dim vData
Call GetDataFormIE(vData)
'//process vData
End Sub

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

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
How do I code the cloning of an object in vba? sarndt Excel Programming 1 March 17th 10 07:05 PM
Cloning an object which contains a collection deltaquattro Excel Programming 0 March 17th 10 04:11 PM
cloning sheets maisonvi Excel Discussion (Misc queries) 1 June 28th 08 09:58 AM
file cloning shnim1 Excel Discussion (Misc queries) 1 December 8th 05 03:00 PM
Best method of cloning the contents of a worksheet. Marie1uk Excel Worksheet Functions 2 July 6th 05 05:20 PM


All times are GMT +1. The time now is 04:30 AM.

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"