欧美一区二区三区,国内熟女精品熟女A片视频小说,日本av网,小鲜肉男男GAY做受XXX网站

Excel請問VBA怎樣實現清空剪貼板?

錢瀠龍2年前24瀏覽0評論

VBA參考代碼:

OptionExplicit#IfVBA7ThenPublicDeclarePtrSafeFunctionOpenClipboardLib"user32"(ByValhwndAsLongPtr)AsLongPublicDeclarePtrSafeFunctionCloseClipboardLib"user32"()AsLongPublicDeclarePtrSafeFunctionEmptyClipboardLib"user32"()AsLong#ElsePublicDeclareFunctionOpenClipboardLib"user32"(ByValhwndAsLongPtr)AsLongPublicDeclareFunctionCloseClipboardLib"user32"()AsLongPublicDeclareFunctionEmptyClipboardLib"user32"()AsLong#EndIfSubCallEC()DimlngRetAsLonglngRet=OpenClipboard(Application.hwnd)IflngRetThenEmptyClipboardCloseClipboardEndIfEndSub

先復制一段文字到剪貼板,然后運行CallEC過程,之后便會看到剪貼板被清空了。