Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Lotus Notes - Unable to Copy Paste Special in macro

Hello everyone, I have a Macro button that paste cell data into an email,
works but at the end of this code I don't see how I can make this past into
notes 6.5 or 7 as a paste special in HTML format. I tried some code but I
don't see how this can be done, Is this posible?

'Copy the cells in the range (one column going down) into the BODY in
Lotus Notes.
'You must set the last cell C33 to one cell below the range you wish to
copy.
Call UIdoc.GotoField("Body")
Body1 = Replace(Join(Application.Transpose(Range([c33], [c49].End(3))),
"@") & " ", "@", vbCrLf)
Call UIdoc.InsertText(Body1)

'Insert some carriage returns at the end of the email
Call UIdoc.InsertText(vbCrLf & vbCrLf)
Application.CutCopyMode = False

Set UIdoc = Nothing: Set WorkSpace = Nothing
Set Maildb = Nothing: Set Notes = Nothing
Set Body = Nothing

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Lotus Notes - Unable to Copy Paste Special in macro

Hi,

You might try posting this to a Lotus Notes newsgroup, I assume there are
some.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Joe Wildman" wrote:

Hello everyone, I have a Macro button that paste cell data into an email,
works but at the end of this code I don't see how I can make this past into
notes 6.5 or 7 as a paste special in HTML format. I tried some code but I
don't see how this can be done, Is this posible?

'Copy the cells in the range (one column going down) into the BODY in
Lotus Notes.
'You must set the last cell C33 to one cell below the range you wish to
copy.
Call UIdoc.GotoField("Body")
Body1 = Replace(Join(Application.Transpose(Range([c33], [c49].End(3))),
"@") & " ", "@", vbCrLf)
Call UIdoc.InsertText(Body1)

'Insert some carriage returns at the end of the email
Call UIdoc.InsertText(vbCrLf & vbCrLf)
Application.CutCopyMode = False

Set UIdoc = Nothing: Set WorkSpace = Nothing
Set Maildb = Nothing: Set Notes = Nothing
Set Body = Nothing

End Sub

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Lotus Notes - Unable to Copy Paste Special in macro

I did on the last one from yesterday, today, i was out of the office, anywayyy

"Shane Devenshire" wrote:

Hi,

You might try posting this to a Lotus Notes newsgroup, I assume there are
some.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Joe Wildman" wrote:

Hello everyone, I have a Macro button that paste cell data into an email,
works but at the end of this code I don't see how I can make this past into
notes 6.5 or 7 as a paste special in HTML format. I tried some code but I
don't see how this can be done, Is this posible?

'Copy the cells in the range (one column going down) into the BODY in
Lotus Notes.
'You must set the last cell C33 to one cell below the range you wish to
copy.
Call UIdoc.GotoField("Body")
Body1 = Replace(Join(Application.Transpose(Range([c33], [c49].End(3))),
"@") & " ", "@", vbCrLf)
Call UIdoc.InsertText(Body1)

'Insert some carriage returns at the end of the email
Call UIdoc.InsertText(vbCrLf & vbCrLf)
Application.CutCopyMode = False

Set UIdoc = Nothing: Set WorkSpace = Nothing
Set Maildb = Nothing: Set Notes = Nothing
Set Body = Nothing

End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro for Edit/Copy/Paste Special icanlearn Excel Worksheet Functions 4 July 17th 08 06:54 PM
Copy range in macro using paste special values Jeff Excel Discussion (Misc queries) 2 August 20th 07 08:12 PM
how to create a copy/paste special/transpose macro? [email protected] Excel Discussion (Misc queries) 6 August 8th 07 06:07 AM
Copy & Paste Special Macro Secret Squirrel Excel Discussion (Misc queries) 3 January 27th 07 02:15 AM
Copy Paste Special Macro Bud Hughes Excel Discussion (Misc queries) 2 August 31st 05 02:00 AM


All times are GMT +1. The time now is 04:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"