04 settembre, 2007

Gestione della clipboard con Excel VBA

Al contrario del post precedente, possiamo notare come viene gestita la clipboard dal VBA di excel:
Set mydata = New DataObject
mydata.SetText STRINGA
mydata.PutInClipboard
Naturalmente, è necessario che siano abilitati i riferimenti, andando su strumenti -> riferimenti e flaggando dove necessario, nel caso io ho flaggato:
Visual Basic For Application
Microsoft Excel 11.0 Object Library
OLE Automation
Microsoft Office 11.0 Object Library
Microsoft Forms 2.0 Object Library
Microsoft ActiveX Data Objects 2.7 Object Library

Nessun commento: