Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default Pop Up Box for company name

I have the following code in an excel spreadhseet so when the user clicks the
button a pop up box will appear for them to enter the B# of the user they
would like to send it to. what I would like to add is in the Body another
pop up box feature that will allow the user to input the name of the company.
Is there any way to include this so it will insert the pop up box
information in the sentence??

Private Sub CommandButton2_Click()
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
Dim strbody As String

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)


With OutMail
.To = InputBox("Enter B# of Officer (Format is B#####)")
.CC = ""
.BCC = ""
.Subject = "Commercial Card Package Received"
.Body = "This to confirm receipt of your Commercial Card package for
____. The package will be processed within 2 business days. Go to
http://intranet.bbtnet.com/"
.Send
End With

Set OutMail = Nothing
Set OutApp = Nothing

End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Pop Up Box for company name

Private Sub CommandButton2_Click()
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
Dim strbody As String

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)

With OutMail
.To = InputBox("Enter B# of Officer (Format is B#####)")
.CC = ""
.BCC = ""
.Subject = "Commercial Card Package Received"
.Body = "This to confirm receipt of your Commercial Card package for
" & _
"____. The package will be processed within 2 business
days. " & _
"Go to http://intranet.bbtnet.com/" & vbNewLine & vbNewLine
& _
"Company: " & InputBox("Enter company name")
.Send
End With

Set OutMail = Nothing
Set OutApp = Nothing

End Sub

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Todd" wrote in message
...
I have the following code in an excel spreadhseet so when the user clicks

the
button a pop up box will appear for them to enter the B# of the user they
would like to send it to. what I would like to add is in the Body another
pop up box feature that will allow the user to input the name of the

company.
Is there any way to include this so it will insert the pop up box
information in the sentence??

Private Sub CommandButton2_Click()
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
Dim strbody As String

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)


With OutMail
.To = InputBox("Enter B# of Officer (Format is B#####)")
.CC = ""
.BCC = ""
.Subject = "Commercial Card Package Received"
.Body = "This to confirm receipt of your Commercial Card package

for
____. The package will be processed within 2 business days. Go to
http://intranet.bbtnet.com/"
.Send
End With

Set OutMail = Nothing
Set OutApp = 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
company names VLOOKUP fORMULA Excel Discussion (Misc queries) 3 April 2nd 09 01:54 AM
Company Contacts gibbylinks Excel Discussion (Misc queries) 1 September 17th 08 02:19 PM
Company Contacts gibbylinks Excel Discussion (Misc queries) 2 September 6th 08 08:58 AM
Sum by company? Mark Scott[_2_] Excel Worksheet Functions 1 April 1st 07 02:58 PM
Entering a company name on the tab Excel Tab Name Excel Discussion (Misc queries) 1 March 11th 05 11:54 PM


All times are GMT +1. The time now is 01:21 AM.

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"