ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro clipboard problem (https://www.excelbanter.com/excel-programming/289034-macro-clipboard-problem.html)

Al Jager

Macro clipboard problem
 
Someone please,
Why does this macro not work?
Want to display the Clipboard and send workbook to a
client.

Sub Send_to_Client_1()
'
' Send_Client Macro
' Macro recorded 11/19/2003 by Al Jager
'
Range("B2").Activate 'B2 contains an email address
Selection.Copy
' If Application.DisplayClipboardWindow = True Then
' MsgBox "Office Clipboard can be displayed."
' Else
' MsgBox "Office Clipboard cannot be displayed."
' End If

' ActiveCell.DisplayClipboardWindow 'expression

Application.Dialogs(xlDialogSendMail).Show

End Sub

BrianB

Macro clipboard problem
 
Is it because several lines of code are "commented" ?

- ie. they have an apostrophe at the beginning, which tells Excel that
they are not part of the code. Apart from test purposes, this is
generally used to add comments to the code.


---
Message posted from http://www.ExcelForum.com/


BrianB

Macro clipboard problem
 
Sorry - the above was meant as a joke - followed by this link :-

It looks as though GetClipBoardWindow doesn't do much itself and w
have to use API calls via VBA.

http://tinyurl.com/22xh

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 02:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com