Excel vs Outlook macro

Clefebvre

New Member
Joined
May 29, 2002
Messages
8
Is it possible to do a macro to copy a cell in excel and paste that cell in outlook and return to excel

Thanks
 
Hello,

This (the original question) is very similar to what I am trying to do: I want to open an outlook form and fill in some of the fields from my excel spreadsheet.

I just don't know how to open the form up in the first place.

Any help appreciated...

Thanks,

CB
 
Last edited:
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Never mind....needed to read the entire thread to get my answer



I am using this code to send specific cells from my excel file to the text in an email.
Instead of Range("a1"), I am trying to paste in Range("h8:j12"), but I am getting an "Array lower bound must be zero" error. Does anybody know how I can append this code to paste in this range of cells instead of just one specific cell?

Thx in advance

Sub Test()
Dim olApp As Object, olMail As Object

Set olApp = CreateObject("Outlook.Application")
Set olMail = olApp.CreateItem(0)
olMail.To = "Anyone@anywhere.com"
olMail.Body = Range("a1") 'Change to suit your needs

'To display the message use this
olMail.Display

'or to send the message use this
'olMail.Send

'Reactive Excel
AppActivate "Microsoft Excel"


End Sub
 
Last edited:
Upvote 0
I got the following to work:

Sub Test()
Dim olApp As Object, olMail As Object

Set olApp = CreateObject("Outlook.Application")
Set olMail = olApp.CreateItem(0)
olMail.To = "Anyone@anywhere.com"
olMail.Body = Range("a1") 'Change to suit your needs

'To display the message use this
olMail.Display

'or to send the message use this
'olMail.Send

'Reactive Excel
AppActivate "Microsoft Excel"


End Sub


But im having trouble selecting the range that i need.

I need to be able to select a3:d17.

How would in do that?

Thanks,

Armando P
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,668
Members
449,463
Latest member
Jojomen56

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top