Outlook 2016 Custom made "Message" column

Harry

New Member
OS Version(s)
  1. Windows
Outlook version
Outlook 2016 32 bit
Email Account
Outlook.com (as MS Exchange)
Operating system::    Windows 10
Outlook version:     2016
Email type or host:    Microsoft Exchange

Hi,

I'm customizing the columns of my "Compact" view and I'm trying to figure out whether I could trim the content of the field "Message" in order to completely get rid of the spaces (" ") coming from the body of the message.
I've found the "Trim" function while trying to create a new custom made column with formula, but this clears only the spaces at the beginning and at the end of the message. Unfortunately, I couldn't find any "Substitute" function (that's what I would use if I wanted to do the same in excel), but I thought you might know an alternative function that can do the same.

Example:
Current "Message" column value: "Dear Harry, Following our discussion I wanted to inform you..."
Desired "Message" column value: "DearHarry,FollowingourdiscussionIwantedtoinformyou..."

P.S. Unfortunately I cannot use macros in this version currently available to me.

Thanks in advance for your time!
 
No, you can't trim the content from the body - you would need to use VBA or PowerShell to add the first nn characters to a new field and use that field in the view.

Actually, A formula might work - but instead of trimming, use Left function and get the first nn characters. (You need to figure out what the optimum character count is. )
 
Truth is "L ( LTrim [Message], n)" works but the real problem starts when copy-pasting the dataset of emails from Outlook to Excel.

Say that I decide to keep the first 100 characters from the left. When the dataset arrives at Excel, you'll get something like that:
SubjectFromToSizeReceivedMessage
Custom made "Message" columnHarryDiane10 KB14/12/2024Dear Harry,
Following our discussion I wanted to inform you...

Whereas I would expect to get something like that:
SubjectFromToSizeReceivedMessage
Custom made "Message" columnHarryDiane10 KB14/12/2024Dear Harry, Following our discussion I wanted to inform you...

And I hoped that getting rid of all spaces (" ") in a message would enable excel to show all the content in a single cell. Besides copy-pasting, I've also tried exporting a csv file from outlook, but the result in excel is always the same. The content of the message is scattered all around.
 
Truth is "L ( LTrim [Message], n)" works but the real problem starts when copy-pasting the dataset of emails from Outlook to Excel.

Say that I decide to keep the first 100 characters from the left. When the dataset arrives at Excel, you'll get something like that:
SubjectFromToSizeReceivedMessage
Custom made "Message" columnHarryDiane10 KB14/12/2024Dear Harry,
Following our discussion I wanted to inform you...

Whereas I would expect to get something like that:
SubjectFromToSizeReceivedMessage
Custom made "Message" columnHarryDiane10 KB14/12/2024Dear Harry, Following our discussion I wanted to inform you...

And I hoped that getting rid of all spaces (" ") in a message would enable excel to show all the content in a single cell. Besides copy-pasting, I've also tried exporting a csv file from outlook, but the result in excel is always the same. The content of the message is scattered all around.
Yeah, export is kind of sucky - messages often get split into multiple cells.

For the problem in your example, if you add the replace function and replace the comma (or line breaks), does it work correctly?

Do you need to have the shorter message in Outlook or only in in Excel? If you can't use VBA (due to restrictions), PowerShell should work - but you do need to use classic Outlook, not OWa or the new Outlook app. I don't think I have a ready to use PowerShell for exporting though
 
Replace(expression, search string, replacement string) should work. It's part of the VBA library, not specifically Outlook. Check the Tools > References dialog, the VBA library should be checked by default.
 
It will work in a macro but not in Outlook custom fields. :(

1734411052094.png
 
If I understand the problem, you want to use Replace in a User Defined Field in a Folder. It's not on the Function List, but (at least in Outlook 2010) it's there. I'm sure that they have "fixed" this by now.

1734823285409.png

1734823297235.png
 
Similar threads
Thread starter Title Forum Replies Date
sjbtax Update Task Custom Field based upon Task Overdue Status Outlook VBA and Custom Forms 8
boblewis Technical Issue with Custom Form - Save to Drafts Not Syncing Outlook VBA and Custom Forms 1
G Apply Custom Contacts form to all existing Contacts Outlook VBA and Custom Forms 1
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
G Outlook 2021 Add Picture to Custom Contact Form Outlook VBA and Custom Forms 2
X Custom icon (not from Office 365) for a macro in Outlook Outlook VBA and Custom Forms 1
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
AndyZ Contact Custom Form Tiny Text Outlook VBA and Custom Forms 3
A How to reduce size of custom contact form? Outlook VBA and Custom Forms 3
S Custom Contact card - need help creating one Outlook VBA and Custom Forms 1
S Outlook 2019 Custom outlook Add-in using Visual Studio Outlook VBA and Custom Forms 0
S Adding Custom Forms Outlook VBA and Custom Forms 4
Witzker How to get the button Karte ( map) in custom contact form Outlook VBA and Custom Forms 2
B Outlook 2019 Custom Email form - Edit default email form Outlook VBA and Custom Forms 6
D Outlook 365 Custom forms field limit? Outlook VBA and Custom Forms 4
J PSA: How to create custom keyboard shortcut for "Paste Unformatted Text" in Outlook on Windows Outlook VBA and Custom Forms 1
M copy field value to custom field Outlook VBA and Custom Forms 0
J Does the .fdm contain my custom form? How to make ol use it? - ol2007 Outlook VBA and Custom Forms 4
J ol2021 custom form not displaying pics Outlook VBA and Custom Forms 37
N "Perform a Custom Action" Outlook VBA and Custom Forms 0
cbufacchi Outlook 365 Populate custom Outlook Appoint form Outlook VBA and Custom Forms 2
C Create Meeting With Custom Form Outlook VBA and Custom Forms 2
FryW Need help modifying a VBA script for in coming emails to auto set custom reminder time Outlook VBA and Custom Forms 0
J custom form not displaying pictures Outlook VBA and Custom Forms 7
I Button PDF in Outlook Contact custom form Outlook VBA and Custom Forms 1
K Font Sizing in Custom Form Regions for Contacts Outlook VBA and Custom Forms 1
V Update new custom field Outlook VBA and Custom Forms 5
D Anyone tell me where custom view settings are stored? Outlook VBA and Custom Forms 9
S Outlook 2016 Arrange tasks by date, additional custom sorting, but still use friendly terms like Today, Tomorrow, This week? Using Outlook 1
K can't get custom form to update multiple contacts using VBA Outlook VBA and Custom Forms 3
H Custom Outlook Contact Form VBA Outlook VBA and Custom Forms 1
S Custom Field Cannot Be Displayed In Views Outlook VBA and Custom Forms 2
D Custom Search Folders not refreshing/updating automatically Using Outlook 0
F Validation on custom task form after task acceptance Outlook VBA and Custom Forms 1
K UDF with formula not showing on Calendar custom view. Outlook VBA and Custom Forms 0
S Create a clickable custom column field Outlook VBA and Custom Forms 0
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
G Other users can't see P.2 with custom fields in Form Outlook VBA and Custom Forms 0
O Create a custom contact form - questions before messing things up... Outlook VBA and Custom Forms 4
S Reference Custom Fields with VBA Outlook VBA and Custom Forms 2
L Custom Form Tutoral? Outlook VBA and Custom Forms 6
D Lost Access to Custom Form Outlook VBA and Custom Forms 4
M vCard does not have user-defined fields from my custom contact form (365) Using Outlook 1
S Outlook Custom Form Scripting only working when clicking on "Run this form" Outlook VBA and Custom Forms 2
A Custom VBA to sort emails into folders Outlook VBA and Custom Forms 0
Victor_50 Outlook 2013 Custom Contact Form starts with "E-mail 2" Outlook VBA and Custom Forms 2
C Custom Form (seperate layout pages and message reading pane) Outlook VBA and Custom Forms 0
C Reading Pane for Custom Form Outlook VBA and Custom Forms 2
M Custom Calendar Print Suggestions? Using Outlook 0

Similar threads

Back
Top