trying to save off locations

G

greg

Hello,
I have a custom class. And I create a bunch of new classes. and save off
information.
One of the pieces of information is a location in excel.
But I am having problems storing the location.

My custom class is clsFile:

Private mvarobjFileLocation As Object 'local copy

Public Property Let FileLocation(ByVal vData As Object)
Set mvarobjFileLocation = vData
End Property

Public Property Get FileLocation() As Object
Set FileLocation = mvarobjFileLocation
End Property


I have also tried excel.range instead of object.

In my main code is this:
Dim cfile As New clsFile
Set objRange = Range(sAddress)
cfile.FileLocation (objRange)

But I am getting errors. What am I doing wrong?
thanks
 
M

Mark Ivey

Just a thought...

If you don't need formatting features, you might consider saving your data
into a CSV file.


Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top