Cannot remove unwanted fields from form

Status
Not open for further replies.

Hallam Riggs

New Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hi all,

I'm editing an old form that has been in circulation around our trust for a few years now. It was created around 2004 by someone in the IT department who is long gone from our organisation. When I joined I cobbled together a new version of the form by using a basic knowledge of Outlook. This is now in need of upgrading to a standard beyond my capabilities (and beyond anyone in our IT setup.)

The form is used to request files from a library. The information is filled in, then the form is emailed to the library mailbox. There are 2 tabs - the first for users to put the information of what they require, and the second is information on who they are and how fast they need it.
On the second tab (named 'Information' - pic2) I can edit all the fields and make it work completely for our needs. On the first tab though (named 'Task' - pic1), I cannot remove the fields I do not require, namely 'Start Date', 'Status', 'Prioirty' and '% Complete'.
This is causing problems when trying to simplify our procedures for staff already having to jump through hoops. Anyone know how I can get rid of these?!

Pic1
2laa5qg.png


Pic2
11t1ikg.jpg
 
Thanks for your reply Diane.

Is there any way I can hide all of those fields from that page on a print out? They all still appear when I print the task.
 
No, not using Outlook's default print functions. You could use a macro to send the fields you want to include in the printout to Word or even to a new outlook message and print.
 
Well that's gone beyond my range of knowledge! Thanks again for your help though!
 
Wow, just seen this! This looks excellent - having an issue with that working - is there a version of this code available with all of the default fields already removed, leaving a blank canvas to work on?
 
none that I am aware of, sorry. :(
 
Hi (again!) Diane!

I put together this last night :):

Code:
Sub PrintTasks()
Dim olTask As Outlook.TaskItem, olMsg As Outlook.MailItem
Dim strBody As String
For Each olTask In Application.ActiveExplorer.Selection
strBody = strBody & olTask.UserProperties("Subject") & vbCrLf & olTask.Body & vbCrLf & olTask.UserProperties("Contact Name") & vbCrLf & olTask.UserProperties("Contact Number") & vbCrLf & olTask.UserProperties("iPM Location") & vbCrLf & olTask.UserProperties("iPM Service Point") & vbCrLf & olTask.UserProperties("iPM Use") & vbCrLf & olTask.UserProperties("Level") & vbCrLf & olTask.UserProperties("Routine") & vbCrLf & olTask.UserProperties("Special Instructions")
Set olMsg = Application.CreateItem(olMailItem)
With olMsg
.BodyFormat = olFormatPlain
.Body = strBody
.Display
.PrintOut
.Close olDiscard
End With
Next
Set olMsg = Nothing
End Sub

A couple of questions (sorry to keep asking - I am quite amateur at this!!!)
How do I keep the field titles? These would be quite useful to us.
How do I direct this to an inbox? It only works on items in my personal tasks. As the task is emailed into our mailbox, it needs to point to that.
Is there any way to add an automatic acceptance of the task into this process as well?
The body does not display a table contained within it. Will it only print as text? Any way I change that?

Thank you so much for your continued help - there is a small corner of South West England that is working much better because of your input!!!
 
1. Write the field's name before its value. It's clearer if you use one line for each field:
strBody=strBody & "Subject: " & olTask.Body & vbcrlf
strBody=strBody & "next field: & ..... & vbcrlf

2. It points to the current selection. If you want to select an email, the olTask variable must be declared As Outlook.MailItem instead of Outlook.TaskItem.

3. Plain text cannot have formattings or a table. Change the format from olFormatPlain to olFormatHtml to keep the table. It could be necessary to format the text then by using html tags. For instance, html cannot display a line break if you write vbcrlf, instead you need to replace it by <br>.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
T Cannot remove needless PST Using Outlook 1
J Your IMAP server wants to alert you to the following: cannot remove system folder Using Outlook 3
E Cannot remove crashed account from Outlook Using Outlook 1
P Cannot understand how to use Favorites Using Outlook 4
U When opening shared Calendar "The set of folders cannot be opened" Using Outlook 0
J Cannot edit a calendar event received as an invitation Using Outlook 2
humility36 Cannot move emails to archive - 440 error Outlook VBA and Custom Forms 1
L I Cannot Sign Into My Outlook Account? Outlook VBA and Custom Forms 0
CWM550 This rule has a condition that the server cannot process? Using Outlook 1
U Outlook on the iPhone cannot approve filtered Emails Using Outlook 0
Horsepower Cannot delete gmail in iPhone Outlook outbox Using Outlook 1
K Daily Task List Minimized Cannot Display Using Outlook 5
O The linked image cannot be displayed Using Outlook 2
C "The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file location" Using Outlook 1
B IMAP server rejects sent email - cannot deliver messages Using Outlook 2
T Outlook 2021 Cannot open attachments Outlook DeskTop 2021 Using Outlook 0
S Cannot print Contacts Using Outlook 7
J VBA Cannot programmatically input or change Value for User Defined field Using Outlook 1
T Outlook 2010 Cannot edit Calendar entries in OL 2010. Using Outlook 1
O Cannot expand the folder. The set of folders cannot be opened. You do not have permission to log on. Using Outlook 1
N Item cannot be saved because it was modified by another user or window, and, Item could not be moved... Using Outlook 0
D Cannot populate certain UserProperties in Outlook from Excel Outlook VBA and Custom Forms 2
D Outlook 2016 64bit, Cannot Save in 'HTML', format Using Outlook 1
D cannot view emails in View pane (in the right pane), I only see one line or nothing Using Outlook 21
M Cannot read the calendar Using Outlook 9
T The Linked Image Cannot Be Displayed in Outlook Using Outlook 7
D Outlook 2016 Outlook Error Msg "The operation cannot be performed ..." How to Stop it Using Outlook 4
S Custom Field Cannot Be Displayed In Views Outlook VBA and Custom Forms 2
G Cannot Move Autocomplete File to New Computer Using Outlook 15
rubaboo The vew cannot be found Outlook VBA and Custom Forms 0
A Cannot copy this folder because it may contain private items Using Outlook 0
L Cannot open PST file for first session each day Using Outlook 6
David in Mississippi New (Feb 2020) install of Outlook 365 - Cannot specify PST for different accounts Using Outlook 0
Marc2019 Need help please! Cannot Setup my outlook email account on my Mac Outlook 2011 Using Outlook.com accounts in Outlook 2
noshairwan Registry cannot be found, Outlook Security Using Outlook 2
Marc2019 Cannot input Vietnamese Characters on my MSOutlook 2016 in Windows 7 Using Outlook 0
Marc2019 Cannot setup Outlook Account on Mac Os 10.6.8 Using Outlook 3
N pst files are recreating automaticaly and cannot be deleted Using Outlook 5
Mark Foley Cannot enable add-in in outlook 2010 Using Outlook 0
T "cannot find the calendar folder for this item" - calendar items stuck in outbox Using Outlook 0
A Created a new user account and the local account cannot see email Using Outlook 3
iwshim outlook 2013 - I cannot see the "Manage Add-ins" Using Outlook 2
T Cannot connect to main BT email account, sub accts okay Using Outlook 0
O The page that you are trying to access cannot be loaded. Using Outlook 0
M Daily Task List Minimized Cannot Display Using Outlook 2
geofferyh Cannot get Macro to SAVE more than one message attachment??? Outlook VBA and Custom Forms 5
DariTrevino MIcrosoft Outlook PST file cannot repair Using Outlook 1
B One email cannot be sent or received (but leaves outbox!) Using Outlook 1
C Outlook 2016 cannot delete, email showing in root Exchange Server Administration 5
S Outlook.com cannot edit some contacts Using Outlook.com accounts in Outlook 5

Similar threads

Back
Top