LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Copying Excel Data Into Outlook via macro

So I had a form in Excel 03, and my hope is to push a macro button and
have the form be copied into the body of an Outlook 03 email.
Current, using the code below I'm able to copy one cell into the body
(in the case below, "A2"). When I change it from olMail.Body =
Range("A2") to olMail.Body = Range("A2:C14"), which is the true range
I want copied over, I get an "Array lower bound musy be zero" error.
Any ideas? Thx

================================
Sub email()

Dim olApp As Object, olMail As Object

Set olApp = CreateObject("Outlook.Application")
Set olMail = olApp.CreateItem(0)
olMail.To = "
olMail.Subject = Range("B4")
olMail.Body = Range("A2")

olMail.Display

'Reactive Excel
AppActivate "Microsoft Excel"

End Sub
===================================
 
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
accessing outlook data using excel macro jaundice Charts and Charting in Excel 0 June 27th 07 11:30 PM
Copying Data from Excel to MS Outlook in Plain Text Mode JohnGuts Excel Worksheet Functions 0 July 30th 06 09:57 PM
Macro to create a Outlook Appointment from excel cell data Alarmbloke Excel Programming 1 January 27th 06 03:49 PM
Copying Excel schedules to different Outlook Calendars littlegreenmen1 Excel Discussion (Misc queries) 0 July 1st 05 09:04 PM
Help Copying from Outlook to Excel pearlmaster8[_2_] Excel Programming 1 October 27th 03 05:26 PM


All times are GMT +1. The time now is 02:47 PM.

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

About Us

"It's about Microsoft Excel"