I have developed a tracking register for complaints and had it working well with automated email function, I modified to to include another reminder and now I keep getting an error 6 overflow.
Can someone please provide advice?
I have developed a tracking register for complaints and had it working well with automated email function, I modified to to include another reminder and now I keep getting an error 6 overflow.
Can someone please provide advice?
Hello tekapo,
Welcome to the Forum!
You keep recreating the Outlook Application. You only need to create the Outlook Application at the very beginning of the code.
![]()
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Another point regards Overflow errors in general...
When storing Row numbers in Variables it is always advisable to use a Long Type variable given Row boundaries exceed those of the Integer type.
In VBA there's a general consensus that the Integer type is of very limited use given all Integers are in fact converted to Longs (and subsequently back to Integer) behind the scenes.
On that basis most would say - just use Longs
(or Byte if you know the value is going to be within Byte boundaries)
Integer is useful if you want to deliberately generate an Overflow Debug but I would say that's an unlikely scenario (given you can just sanity check the value of the Long)
Last edited by DonkeyOte; 10-03-2010 at 06:30 AM. Reason: reworded
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks