LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Problem with counting characters VBA

Ive managed to crack this :) just at the last hurdle now of creating
the emails,

ive got the code to open a new mail message and output the email
addresses in the to:, but when the email saves to the desktop and the
process is done again, it seems that the 2nd mail message is
overwriting the 1st even thought its a different file name

Character_Length = Len(Cell_Contents)
Counter = Counter + Character_Length

If Counter 19000 Then

With oMailItem

.To = Output
.Subject = "Online Payslips Now Ready"
.Body = "[Message]"
.Save (SaveEmail)

End With

Counter = 0
Character_Length = 0
EmailCount = EmailCount + 1
Output = ""

this is the code to open new mail message and put addresses in, can
anyone help me?

 
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
Counting characters Howard Excel Discussion (Misc queries) 3 March 26th 10 12:27 PM
Counting characters LiAD Excel Worksheet Functions 5 March 10th 09 02:20 PM
Counting Characters Ryan Excel Worksheet Functions 7 January 23rd 07 04:44 PM
Counting characters sdmccabe Excel Discussion (Misc queries) 2 March 27th 06 08:10 PM
Problem with counting characters in a cell Tink Excel Worksheet Functions 2 June 27th 05 12:52 PM


All times are GMT +1. The time now is 03:06 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"