CellShocked laid this down on his screen :
On Sat, 05 Jan 2013 21:27:14 -0500, GS wrote:
CellShocked explained :
How do I call this: (remember to paste it all back together right)
[[[[[[dotnet.loadAssembly @"System.Management.dll"
mc = dotNetObject "System.Management.ManagementClass" "Win64_Processor"
moc = dotNetClass "System.Management.ManagementObjectCollection"
moc = mc.GetInstances()
enumerator = moc.GetEnumerator()
while enumerator.MoveNext() do
(
mo = enumerator.current
append CPUID ( mo.Properties.Item["ProcessorId"].value )
)]]]]]]
This is dotnet code and so won't work with VBA. Use the code I posted
here earlier...
Your code? On a 64 bit system?
Yes!
And what about answering the question
where I asked just how to store that code in the excel VB editor (where)
and how to call it?
Store the code in a standard module, but remove the Private scope
keyword. Read my other replies for sample of how to use it.
--
Garry
Free usenet access at
http://www.eternal-september.org
Classic
VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.
vb.general.discussion