A
aldo
Dear comunity
I wrote last week about my problem : How can I delete the
clipboard. I use the solutions but didn't work. Sik Sik
I work with the new: Office Clipboard under XP with excel
2002. Maeby is some special to do? My code:
Sub Macro1()
'
'OFFICE XP (with Excel 2002 and Word 2002)
'Excel I open Excel and a data file DATA.xls. I Copy a
' range value into the Office Clipboard (like: shift +
' edit ,copy like a picture). I close the ActiveWorkbook.
ChDir "N:\AM_TEST\AM_DATA"
Workbooks.Open Filename:= _
"N:\AM_TEST\DATA.xls"
Range("A1:J34").Select
Selection.CopyPicture
Appearance:=xlPrinter,Format:=xlPicture
ActiveWorkbook.Close
' I open WORD
Dim appwrd As Object
Set appwrd = CreateObject("Word.application")
appwrd.Visible = True
appwrd.ChangeFileOpenDirectory "N:\AM_TEST\"
appwrd.Documents.Open Filename:="DOCrecipient.doc",
ConfirmConversions:=False, _
ReadOnly:=False, AddToRecentFiles:=False,
PasswordDocument:="", _
PasswordTemplate:="", Revert:=False,
WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto
appwrd.WordBasic.EditOfficeClipboard
appwrd.Selection.Paste
appwrd.Application.WindowState = wdWindowStateMaximize
appwrd.ActiveDocument.Save
appwrd.ActiveDocument.Close
appwrd.Application.Quit
Set appwrd = Nothing
' At this place i will put the code for clean the
' Office Clipboard XP
'... but i dont' know how... sik sik
End Sub
I wrote last week about my problem : How can I delete the
clipboard. I use the solutions but didn't work. Sik Sik
I work with the new: Office Clipboard under XP with excel
2002. Maeby is some special to do? My code:
Sub Macro1()
'
'OFFICE XP (with Excel 2002 and Word 2002)
'Excel I open Excel and a data file DATA.xls. I Copy a
' range value into the Office Clipboard (like: shift +
' edit ,copy like a picture). I close the ActiveWorkbook.
ChDir "N:\AM_TEST\AM_DATA"
Workbooks.Open Filename:= _
"N:\AM_TEST\DATA.xls"
Range("A1:J34").Select
Selection.CopyPicture
Appearance:=xlPrinter,Format:=xlPicture
ActiveWorkbook.Close
' I open WORD
Dim appwrd As Object
Set appwrd = CreateObject("Word.application")
appwrd.Visible = True
appwrd.ChangeFileOpenDirectory "N:\AM_TEST\"
appwrd.Documents.Open Filename:="DOCrecipient.doc",
ConfirmConversions:=False, _
ReadOnly:=False, AddToRecentFiles:=False,
PasswordDocument:="", _
PasswordTemplate:="", Revert:=False,
WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto
appwrd.WordBasic.EditOfficeClipboard
appwrd.Selection.Paste
appwrd.Application.WindowState = wdWindowStateMaximize
appwrd.ActiveDocument.Save
appwrd.ActiveDocument.Close
appwrd.Application.Quit
Set appwrd = Nothing
' At this place i will put the code for clean the
' Office Clipboard XP
'... but i dont' know how... sik sik
End Sub