J
jwkolker
Hello - I am resonably versed in VBA but mostly for Access and Excel -
I am just starting to dabble in Outlook macros to automate stuff for
users.
Here's the latest I am trying to get done (and obviously would love
code suggestions for...)
1. Email comes in for order information
Example follows:
==================================================
Store ID: westwayeshop
Date order placed: Tue Apr 04 15:05:18 2006
Order Number: 1438
ShopSite Transaction ID: 10172-1144177444
Billing Address:
-----------------
Customer Name: mr mark Gordon
Company:
Address: 1232 S. Ervay St.
City: Dallas
State/Province: TX
Zip Code: 75215
Country: United States
Phone Number: 800-348-3888
Email: (e-mail address removed)
The shipping address is the same as the above address
Comments / More Information
Special Ordering Instructions (if any)
Qty Name W_Num Each Subtotal
------------------------------------------------------------------------
200 83R BRK BATTRY SMK DET W000377 $9.31
$1,862.00
------------------------------------------------------------------------
Subtotal
$1,862.00
Shipping: UPS Ground
$100.00
Tax Total
$0.00
Grand Total
$1,962.00
Payment type: Visa
Order Processing Info:
*ANET-SALE*:1066828242:055182,N,,This transaction has been approved.:
To retrieve payment information on this order, click on the 'Orders'
button from within ShopSite.
Shopsite URL:
https://commerce29.pair.com/ontops/cgi-bin/ss/cgiwrap.cgi/ontops/ss/start.cgi
This store is powered by ShopSite web catalog software.
===================================================
End of Sample
2. Now - what I want to do is strip out only the billing address and
order items
Like this
=====================================================
Billing Address:
-----------------
Customer Name: mr mark Gordon
Company:
Address: 1232 S. Ervay St.
City: Dallas
State/Province: TX
Zip Code: 75215
Country: United States
Phone Number: 800-348-3888
Email: (e-mail address removed)
The shipping address is the same as the above address
Comments / More Information
Special Ordering Instructions (if any)
Qty Name W_Num
------------------------------------------------------------------------
200 83R BRK BATTRY SMK DET W000377
======================================================
3. Now - I want to add some of my own text above and or below this text
4. Write something in the Subject Line - Like "Purchase Order
request...."
5. Pop open the Address book and default to addresses starting with
"Supplier - *"
6. After send then move to folder (this I may get done with a rule)...
NOTES -
- There may be multiple lines of products listing in the original
email
- The email comes formatted as plain text
Any help with this or even parts of this would be greatly appreciated.
Thanks.
John Kolker
I am just starting to dabble in Outlook macros to automate stuff for
users.
Here's the latest I am trying to get done (and obviously would love
code suggestions for...)
1. Email comes in for order information
Example follows:
==================================================
Store ID: westwayeshop
Date order placed: Tue Apr 04 15:05:18 2006
Order Number: 1438
ShopSite Transaction ID: 10172-1144177444
Billing Address:
-----------------
Customer Name: mr mark Gordon
Company:
Address: 1232 S. Ervay St.
City: Dallas
State/Province: TX
Zip Code: 75215
Country: United States
Phone Number: 800-348-3888
Email: (e-mail address removed)
The shipping address is the same as the above address
Comments / More Information
Special Ordering Instructions (if any)
Qty Name W_Num Each Subtotal
------------------------------------------------------------------------
200 83R BRK BATTRY SMK DET W000377 $9.31
$1,862.00
------------------------------------------------------------------------
Subtotal
$1,862.00
Shipping: UPS Ground
$100.00
Tax Total
$0.00
Grand Total
$1,962.00
Payment type: Visa
Order Processing Info:
*ANET-SALE*:1066828242:055182,N,,This transaction has been approved.:
To retrieve payment information on this order, click on the 'Orders'
button from within ShopSite.
Shopsite URL:
https://commerce29.pair.com/ontops/cgi-bin/ss/cgiwrap.cgi/ontops/ss/start.cgi
This store is powered by ShopSite web catalog software.
===================================================
End of Sample
2. Now - what I want to do is strip out only the billing address and
order items
Like this
=====================================================
Billing Address:
-----------------
Customer Name: mr mark Gordon
Company:
Address: 1232 S. Ervay St.
City: Dallas
State/Province: TX
Zip Code: 75215
Country: United States
Phone Number: 800-348-3888
Email: (e-mail address removed)
The shipping address is the same as the above address
Comments / More Information
Special Ordering Instructions (if any)
Qty Name W_Num
------------------------------------------------------------------------
200 83R BRK BATTRY SMK DET W000377
======================================================
3. Now - I want to add some of my own text above and or below this text
4. Write something in the Subject Line - Like "Purchase Order
request...."
5. Pop open the Address book and default to addresses starting with
"Supplier - *"
6. After send then move to folder (this I may get done with a rule)...
NOTES -
- There may be multiple lines of products listing in the original
- The email comes formatted as plain text
Any help with this or even parts of this would be greatly appreciated.
Thanks.
John Kolker