MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 10th, 2002, 02:46 PM   #1
eddy
Board Regular
 
Join Date: Mar 2002
Posts: 473
Default

Had a lot of help from TSTom and Snozgur but had recent crash and lost your E-Mail address's.

Need a macro that will:-
a) Select a range in worksheet (CopySheet) Range C3:H12 (Using Excel 2000)
b) Open Outlook (2000)
c) Past selection into text area whilsh maintaining formating.
Addressee will then be selected in the normal way via the Outlook address book.
Snozgur almost got the answer but it seemed very much O/S and Office version specific.
eddy is offline   Reply With Quote
Old May 10th, 2002, 03:51 PM   #2
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

TSTom and Snozgur

TsTom i have exchaneg whith my Email and PM i sure and suggerst PM if no Email or suggest the profile to TStom, sure its there

Snozgar is in Turkey i think so im sure also he/she has email out there suggest profile again... or PM i have never chatted thou so cant comments

thats why guys advertise the email and of cause PM is just for that.

can i ask you kinda put stuff on the board so everyone can see and manybe learn.

i had harsh comment as i help guys off the board as to why i dont post, i will and have versions of my work, but some are heavy like VAT and tax and filldle to be detected, and opening data and hiding data from worrlwide companies, so i gave my world i would not say directly. If IT manager asks me as has happened to help in confidance i do that I am protected him... i trust this is ok.

But soo you see tips from me on stuff ive done so all can have my work..


__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old May 10th, 2002, 03:54 PM   #3
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

reading you post what are you trying to do.. bulk emaiol or automate the emailing

would a excel sheet tha bulks not do this.. but why copy/paste the range.. whynot sent the sheet???

some ideas...

__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old May 10th, 2002, 04:06 PM   #4
eddy
Board Regular
 
Join Date: Mar 2002
Posts: 473
Default

Hi Jack ..
Most of the postings about this one were done via this board so the message exchange was open to everyone. I now feel that I got so much help from these two guys that I wanted to stay in touch and have now lost there E-Mail address's.
Need to get the text into Outlook text area, the reason is simple, believe it or not a lot of people I send the information to dont have Excel. Snozgur had the solution using a standard Add In but is was O/S / Office version specific. It would be nice to have a generic answer if possible.
eddy is offline   Reply With Quote
Old May 10th, 2002, 04:18 PM   #5
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

Hi Ted...
I could not keep the formatting using VBA.
The only way I could get it to work was using a stand alone exe(VB) to open both Outlook and Excel via Ole and then it worked as a standard copy and paste.
There's got to be a better way to do this?
Tom
Tom Schreiner is offline   Reply With Quote
Old May 10th, 2002, 04:23 PM   #6
eddy
Board Regular
 
Join Date: Mar 2002
Posts: 473
Default

Hi Tom

OK lets see if anyone else can suggest a way of doing it.
Thanks Ted
eddy is offline   Reply With Quote
Old May 10th, 2002, 09:28 PM   #7
artslave
New Member
 
Join Date: Apr 2002
Location: California
Posts: 26
Default

It's kind of roundabout, but you can use Save as HTML in Excel, specify the range, save as an HTML document.

Then open new HTML-format mail message in Outlook, Insert File as Text Only (rather than Attachment), and choose your HTML document. It should put just your range into the body of the Email, and preserve most types of formatting.

Would that work for you?

Catherine
artslave is offline   Reply With Quote
Old May 11th, 2002, 12:35 AM   #8
eddy
Board Regular
 
Join Date: Mar 2002
Posts: 473
Default

Thanks Catherine, that works fine. It would be nice to have the code which would do it automatically from a macro button on the worksheet. Any ideas?
Ted
eddy is offline   Reply With Quote
Old May 11th, 2002, 02:58 AM   #9
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

i did not want to advise as you req two friends that have helpped you prior, and extended that respect to them.

I would have suggested copy paoste which is easy enough. or directed you the samples.xls which was installed default with office which gives codes as such, excel to word and outlook??? cant recall,

or save part of excel to HTML and attach.. all have been suggested.

i have very heavy complex projects some are to alter outlook via VBA, its not so nice as staying in excel its self

good luck, let me know ill post what i have on this feed as i develop might help...


__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old May 11th, 2002, 03:04 AM   #10
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

not often i look deep in my archives of codes,, try:

custom i guess, should select the range.....

||||||||||||||||||\

Sub Send_Msg()
Dim objOL As New Outlook.Application
Dim objMail As MailItem
Set objOL = New Outlook.Application
Set objMail = objOL.CreateItem(olMailItem)
With objMail
.To = "name@domain.com"
.Subject = "Automated Mail Response"
.Body = "This is an automated message from Excel. " & _
"The cost of the item that you inquired about is: " & _
Format(Range("A1").Value, "$ #,###.#0") & "."
.Display
End With
Set objMail = Nothing
Set objOL = Nothing
End Sub

__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes