Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: Excel/Microstation VBA conflict - Error 1004: PasteSpecial method of Range Class Failed

$
0
0

The Windows clipboard is a global object.  Presumably, Excel is copying hazardTriangle to the clipboard, then PasteSpecial pastes that into your Excel cell.  That all works because Excel understands its own clipboard data types.

I'm as puzzled as you that if MicroStation is running it causes something in another process (Excel) to go wrong.  Why should MicroStation be observing a clipboard copy/paste event sequence in another process?

Does it make any difference if you are explicit about the clipboard data type? For example...

Const SkipBlanks As Boolean = True
ws.PasteSpecial xlPasteValues, xlPasteSpecialOperationNone, SkipBlanks 


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>