There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
audio avg avg 8 blue screen brand new codec control panel conversion crash delete personal data desktop display dos driver duplicate dvd error error message excel explorer file firefox game graphics hardware hijackthis log install installation internet itunes javascript laptop macro malware monitor msconfig msn music network outlook outlook 2003 outlook express php problem program random rundll32 security seo sound sp3 spyware switch tag cloud trojan usb video virtumonde virus vista visual basic vundo wallpaper windows windows vista windows xp wireless word xp sp3 youtube
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Visual Basic - HELP!


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
kyle-c-'s Avatar
Junior Member with 1 posts.
 
Join Date: May 2008
Experience: Intermediate
06-May-2008, 09:07 AM #1
Visual Basic - HELP!
first post so please go easy on me -

I have written a macro in VB within Excel to send a saved copy of the wokbook as an attachment in an email to predetermined addresses, this part is so far fine and working okay, however i now want to set the importance of the email to high when a certain priority is selected in the spreadsheet anyu help would be great, this is what i have so far...

Sub email()
On Error GoTo NotSent
ActiveWorkbook.SendMail Recipients:=Array("kyle.curran@baesystems.com"), Subject:="New RSPR Request"

MsgBox "Do Not Save Any Changes To This Document. Any problems contact EATF x54512."
Exit Sub

NotSent:
MsgBox Prompt:="This RSPR Request has not been sent. To send the request select Yes when the file has loaded."
MsgBox "Do Not Save Any Changes To This Document. Any problems contact EATF x54512."
End Sub

Thanks
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:28 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.