-
WSRuff_Hi
AskWoody LoungerJune 18, 2003 at 11:54 am in reply to: Bold font with System generated Email (Outlook 2002 SP2) #686632I started to play with the .body and .HTMLbody items yesterday. I was thinking that I could just build the message part of the email as per normal (.body = .body & “blah blah blah”) and when I wanted to add a bold item, use the HTMLbody part (.HTMLbody = .HTMLbody & “bold blah blah blah“).
It worked on a quick test that I did but I couldn’t get it to work if I swapped between the two. I really don’t want to code the whole silly email in HTML just to get bold comments.
-
WSRuff_Hi
AskWoody LoungerJune 18, 2003 at 11:51 am in reply to: Bold font with System generated Email (Outlook 2002 SP2) #686631Yes, I had thought of flags – but will this work if I have ‘follow up’ emails spread over a number of folders and over a number of pst files?
-
WSRuff_Hi
AskWoody LoungerRe Q5
I would have thought that all temperatures are the same, no matter what scale they are recorded on. Walk outside in a Nth American winter and you just know its cold! Doesn’t matter if its recorded in F or C (or absolute for that matter).
-
WSRuff_Hi
AskWoody LoungerFantastic – worked like a dream!
These memos will be a work of art any day now!
Thanks a heap.
-
WSRuff_Hi
AskWoody LoungerDid it! Without the use of a macro too.
One of jscher’s link was the kicker. I reset my views using the /cleanviews switch, then removed the preview pane (pain) from my default views (views, current view, define view, modify, other settings and unchecked the ‘show preview pane’.
Thanks all – I can now create new folders without the preview pain being ‘on’ by default.
-
WSRuff_Hi
AskWoody LoungerFantastic!
It wasn’t exactly what I wanted so I put in the following bit of code …
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) Dim lsMessage As String lsMessage = "Do you want to keep a copy of this email?" Item.DeleteAfterSubmit = Not (MsgBox(lsMessage, vbYesNo) = vbYes) End Sub
Thanks for your help.
-
WSRuff_Hi
AskWoody LoungerHi All,
I’ve used a very similar method to create a recurring email where the bulk of the text was a constant but I wanted to add paragraphs at the end of the email that changed.
To do this, I created a text file and typed in the additional paragraphs that I wanted to add. Then opened the text file and read the file in (cannot remember if it was one big string or lots of little ones that I concatenated together) using VB.
Then assigned this string (the standard stuff plus the variable stuff from the text file) to the body of the email. Worked like a dream.
-
WSRuff_Hi
AskWoody LoungerHi Stuart,
What about creating a variable that tells you were you are up to in the form population so you can skip the part of the code that has already been executed.
Alternatively, instead of hiding the form, change the height and width to a smallish value and move it almost off the screen. If it doesn’t release control so that the user can close the preview, then change your now smaller form to include (visible) CLOSE button and use that to close the preview and resume.
-
WSRuff_Hi
AskWoody LoungerDid it. I ended up using VBA to create a replica of the global distribution group in my own contact folder. I used the following code
Private Sub mCCopyGlobalDistList()
Dim lvOLApp As ThisOutlookSession
Dim lvNameSpace As NameSpace
Dim lvGAddressList As AddressList
Dim lvGEntries As AddressEntries
Dim lvGEntry As AddressEntry
Dim lvMember As AddressEntry
Dim lvPDistList As DistListItemSet lvOLApp = CreateObject(“Outlook.Application”)
Set lvNameSpace = lvOLApp.GetNamespace(“MAPI”)
Set lvGAddressList = lvNameSpace.AddressLists(“Global Address List”)
Set lvGEntries = lvGAddressList.AddressEntries
Set lvGEntry = lvGEntries(“Name of Global List Here”)Set lvPDistList = lvOLApp.CreateItem(olDistributionListItem)
lvPDistList.Subject = “Your Version Name Here”For Each lvMember In lvGEntry.Members
Set myTempItem = lvOLApp.CreateItem(olMailItem)
Set myRecipients = myTempItem.Recipients
myRecipients.Add lvMember
lvPDistList.AddMembers myRecipients
NextlvPDistList.Save
Set myRecipients = Nothing
Set myTempItem = Nothing
Set lvPDistList = Nothing
Set lvGEntry = Nothing
Set lvGEntries = Nothing
Set lvGAddressList = Nothing
Set lvNameSpace = Nothing
Set lvOLApp = Nothing
End Sub -
WSRuff_Hi
AskWoody LoungerYes, you are quite correct, it should be deciseconds, not milliseconds. With regards to timer, its a VB / VBA function that comes with the language. Do I have to describe it. Oh ok, here is what I lifted out of the help …
Returns a Single representing the number of seconds elapsed since midnight.
-
WSRuff_Hi
AskWoody LoungerAre you sure? I used format(time, “ss.ms”) and all it gave me was the number of seconds follows by a dot followed by the month number followed by the number of seconds again.
Sort of like 33.1133.
I put together the following which gives me hh:mm:ss.milliseconds and seems to work ok.
Dim lrTimer As Double Dim lrCurrTime As Double Dim lrMilliseconds As Double lrTimer = Timer lrMilliseconds = lrTimer - Int(lrTimer) lrCurrTime = int(lrTimer) / (24& * 60& * 60&) msgbox Format(lrCurrTime, "hh:mm:ss") & _ Format(lrMilliseconds, ".00 - ") & _ Message
-
WSRuff_Hi
AskWoody LoungerHow silly is this. There is a knowledge base article that discusses this issue and suggests a work around – basically close the workbook (saving changes) and then re-open it. It looks like MS are extending the concept of ‘fix all problems with a reboot’.
The knowledge base article is here …
-
WSRuff_Hi
AskWoody LoungerI bet the “m” means months which means that the 01 is correct as the date is 01/01/1900
-
WSRuff_Hi
AskWoody LoungerExcellent. Thanks Andrew.
How about when you reference or dimension an array. For example …
dim lsArray(1% to 10%) as string lsArray(1%) = "Hello World!"
as opposed to …
dim lsArray(1 to 10) as string lsArray(1) = "Hello World!"
-
WSRuff_Hi
AskWoody Loungerhang on, hang on, hang on …
now that is just getting carried away. Who said that he didn’t declare his variables. He does, and he follows the naming convension too.
However, he does put things like
dim i as integer for i = 1% to 5%
in his code instead of
dim i as integer for i = 1 to 5
Therefore, I was asking what the ‘%’s meant and wondering if there was any difference between the two.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Ubuntu 25.04 (Plucky Puffin) Beta released
by
Alex5723
15 minutes ago -
How to install App Store apps on an external SSD
by
Alex5723
1 hour, 9 minutes ago -
Where is Windows going?
by
Susan Bradley
2 hours, 27 minutes ago -
Does anyone know how can we convert OST to Office 365? (Awaiting moderation)
by
Sanchit Tandon
4 hours, 53 minutes ago -
Installing Feature Update Windows 11 24H2
by
geekdom
18 hours, 38 minutes ago -
Windows 11 Insider Preview build 27823 released to Canary
by
joep517
19 hours, 2 minutes ago -
Windows 11 Hotpatch
by
Hackmuss
2 hours, 19 minutes ago -
System Guard service error still won’t be fixed
by
Susan Bradley
19 hours, 41 minutes ago -
Operation ForumTroll: APT attack with Google Chrome zero-day exploit chain
by
Alex5723
13 hours, 52 minutes ago -
Troy Hunt of HaveIBeenPwned Phished
by
Lars220
10 hours, 53 minutes ago -
Microsoft Windows security auditing Code 5061
by
mpw
1 day, 8 hours ago -
Can’t display images in incoming Outlook 365 emails
by
WScopwriter
15 hours, 49 minutes ago -
Windows 11 Insider Preview Build 26200.5510 early builds of 25H2
by
Alex5723
17 hours, 17 minutes ago -
0Patch : Micropatches released for SCF File NTLM Hash Disclosure Vulnerability
by
Alex5723
16 hours, 47 minutes ago -
Select multiple emails and they all open up!
by
CeeJay
2 days, 9 hours ago -
How to remove an update preview
by
Gunny
12 hours, 11 minutes ago -
Third party add ins reminder
by
Susan Bradley
7 hours, 46 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
2 days, 3 hours ago -
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
2 days, 13 hours ago -
How can I update “Explorer Patcher”
by
WSplanckster
2 days, 15 hours ago -
Check out the home page for Signal
by
CAS
2 days, 13 hours ago -
Windows 11 and Trial version of MS Office
by
Tex265
2 days, 12 hours ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
2 days, 20 hours ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
2 days, 20 hours ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
2 days, 20 hours ago -
Limits on User Names
by
CWBillow
2 days, 16 hours ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
16 hours, 52 minutes ago -
Non Apple Keyboards
by
pmcjr6142
18 hours, 8 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
2 days, 14 hours ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
2 days, 12 hours ago
Recent blog posts
- Where is Windows going?
- System Guard service error still won’t be fixed
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
- Planning ahead for migration
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.