Hi there,
I am an Excel VBA enthusiast and really struggling with this concept of the "FM20.dll" file.
I found the DLL on the computer by doing a general search and pasted in the C:\Windows\System32 dir. I restarted Excel, added a userform (and tried deleting it again as well) - No change, still not able to use DataObject to copy cell string to clipboard.
So here is my scenario:
I created my own invoice sheet. The file will be saved as a PDF to send to clients. This PDF's name will vary depending on the information in the excel sheet. Info is gathered from different cells and added (as variables) together with static text to a single cell. The value of this cell (Not including the formula) must be copied to the clipboard so that when I press F12 to "save as", and choose the directory I only have to Ctr+V to paste the correct file name and click save.
The cell value (File Name) must be updated with every change in that sheet in order for it to have the latest details from the sheet for the name of the file.
So in short: I need to copy only the value of a cell as a text string to the clipboard to be available to be pasted as text as if you copied it from a MS Word doc - This cell value contains formula and text.
The formula I have tried includes the following:
'"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Private Sub Worksheet_Change(ByVal Target As Range)
Dim MyData As DataObject
Set MyData = New DataObject
MyData.SetText (Range("O1:W1"))
MyData.PutInClipboard
End Sub
'"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Any help would be much much appreciated.
Thanks in advance.
Andrew