AntoPath
New Member
Hi everybody !
I'm trying to make my old 2003 Excel at my hospital, to copy-paste the content of CA49-CA80 non empty cells into notepad in order to get the text without all the formattings and then copy-paste it again into my LIS.
Everything works fine ... the data are properly selected and copied into the clipboard, notepad is opened and taken to the front but the clipboard content isn't pasted into it and I have to force Excel by hitting ctrl-v.
The script is:
Application.ScreenUpdating = False
Range("CA49:CA80").Select
Selection.AutoFilter
ActiveSheet.Range("$CA$49:$CA$80").AutoFilter Field:=1, Criteria1:="<>"
Selection.Copy
Shell "notepad.exe", vbNormalFocus
SendKeys "^V"
End Sub
Please be patient, I'm a novice to VBA and all these things sound magic to me !.
Antonio
I'm trying to make my old 2003 Excel at my hospital, to copy-paste the content of CA49-CA80 non empty cells into notepad in order to get the text without all the formattings and then copy-paste it again into my LIS.
Everything works fine ... the data are properly selected and copied into the clipboard, notepad is opened and taken to the front but the clipboard content isn't pasted into it and I have to force Excel by hitting ctrl-v.
The script is:
Application.ScreenUpdating = False
Range("CA49:CA80").Select
Selection.AutoFilter
ActiveSheet.Range("$CA$49:$CA$80").AutoFilter Field:=1, Criteria1:="<>"
Selection.Copy
Shell "notepad.exe", vbNormalFocus
SendKeys "^V"
End Sub
Please be patient, I'm a novice to VBA and all these things sound magic to me !.
Antonio