Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The data is definetly not top sectret and must not be stored persistently.
So this sounds sufficient for me. Thanks to Harald ... I need to store different data and I guess, this is the only property I can (mis-) use. I tried something like this: Public Type MyType somedata As Integer someother As String End Type Private Sub test() Dim CellData As MyType CellData.somedata = 42 CellData.someother = "fourty-two" Sheets(1).Cells(2, 2).ID = CellData End Sub But I've got the error: "Only user-defined types defined in public object modules can be coerced to or from a variant or passed to late-bound functions" As I have defined MyType as a Public type, I guess the problem is the "public object module". What is a "public object module" and how can I create one ??? Thanks a lot, Thorsten |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I copy cell attributes between worksheets | Excel Discussion (Misc queries) | |||
Cell attributes | Excel Discussion (Misc queries) | |||
Data value display attributes linked to table attributes | Charts and Charting in Excel | |||
store inventory sheet(ex:sports equipment store) | Excel Worksheet Functions | |||
Attributes of a cell | Excel Programming |