Command Button to stamp a date and time in a textbox in Outlook 2016

Status
Not open for further replies.

Joe732

New Member
Outlook version
Outlook 2016 32 bit
Email Account
Outlook.com (as MS Exchange)
Hi I am creating a fallible form in Outlook 2016. I am trying to create a command button that will enter the current date and time in a textbox.
 

Joe732

New Member
Outlook version
Outlook 2016 32 bit
Email Account
Outlook.com (as MS Exchange)
Thanks for the response I am trying to use the VB code to work the command button and I keep getting the error "Only comments may appear after End Sub, End Function, or End Property".

Sub CommandButton3_Click()

End Sub
TextBox.datestamp.Value = Now() "It Highlights the Now"
End With


Sub signauture()

End Sub
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
The three bolded lines don't belong.

Sub CommandButton3_Click()

End Sub
TextBox.datestamp.Value = Now() "It Highlights the Now"
End With

Sub signauture()

End Sub
 
Last edited:
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
D Command Button code will not execute. Any suggestions Please. Outlook VBA and Custom Forms 2
S Problem running Command button code Outlook VBA and Custom Forms 2
S Code behind form command button Using Outlook 2
M Open new outlook form from within existing outlook form using command button Using Outlook 4
A Command Button Controls Outlook VBA and Custom Forms 6
J Command Button to insert Email Signature Outlook VBA and Custom Forms 2
Z Command button no longer firing after sending custom form over ema Outlook VBA and Custom Forms 1
U Customized Command Button Outlook VBA and Custom Forms 3
J OUTLOOK 2016 FILE STORAGE WHERE COMMAND Using Outlook 12
D Custom Form Accept and Reject Command buttons Outlook VBA and Custom Forms 2
Dr. Demento Outlook version of Excel command? Using Outlook 5
L Outlook Data Files command not working in the quick access bar Using Outlook 1
R Missing Backup command in File menu after installing pfback.exe Using Outlook 2
S Exchange Management Shell closes on command failure Exchange Server Administration 5
P "open" command in right click context menu Outlook Wishlist 4
M "New Appointment from Contact" command missing from Outlook 2003 Using Outlook 1
B command "recall message" in Outlook 2011 for Mac Using Outlook 1
C Suppress output when using get command Exchange Server Administration 4
C Exchange 2007 Shell command to find users who are members of Recipient Administrator Exchange Server Administration 3
S vb.net exchange 2010 problem with enable-mailbox command Exchange Server Administration 2
L Trying to receive email without the send/receive command Using Outlook 6
P Will 'ldap modify' command work on some Active Directory fields? Using Outlook 2
J What is the command to view the ManagedFolderAssistantSchedule? Exchange Server Administration 3
J How to Find Registry Key Command for Outlook 2010 Issue? Using Outlook 1
G How to determine the "Distinguished Name string" of a security group for New-ManagementScope command Exchange Server Administration 2
C 503 Valid RCPT command must precede DATA Using Outlook 2
V Upload a CSV file, created from a BCP command into Outlook calendar Using Outlook 1
O Outlook 2010: Rule to move sent emails doesn't start if I Use "Send To" command on a file on desktop Using Outlook 3
J Error Code 503: Valid RCPT command must precede DATA Using Outlook 1
O Exchange 2010 "Get-mailboxdatabse" command fails Exchange Server Administration 2
M Exchange 2010 Unified Messaging - What is the Shortcut Command to bypass a greeting to leave a voice Exchange Server Administration 2
D An error in the transmission of the command to the application Using Outlook 1
D FTP MPUT command Exchange Server Administration 2
J Exchange Shell Command Exchange Server Administration 2
A When test send e-mail: "503 valid RCPT command must precede DATA". Using Outlook 2
E 503 Valid RCPT command must precede DATA Using Outlook 0
A Command to show users connected on Exchange 2010 CAS Exchange Server Administration 2
R What's the command if I want to disable multiple UM users in Exchange 2010 in Exchange Management Shell? Exchange Server Administration 3
D Outlook 2010: The command line argument is not valid. Verify the switch you are using Using Outlook 3
S Get-WebServicesVirtualDirectory command doesn't support '-ExternalURL' parameter? Exchange Server Administration 3
R "Cannot start Microsoft Office Outlook. The command line argument is not valid. Verify the switch Using Outlook 2
E Missing New-Mailbox command after SP1 upgrade Exchange Server Administration 11
C Outlook 2010 won't complete send and receive command Using Outlook 1
A What Powershell command must be used to set mAPIRecipient? Exchange Server Administration 3
J 0x8DE00002 Object with Id 5e383750-b80a-4528-87a5-2a5304647a7e appears in more than one [Error] command Using Outlook 9
D Re: Unexpected error [0x786ADB6B] while executing command 'Get-MailboxDataBase -IncludePreExchange20 Exchange Server Administration 4
B Out of office command is not available. Using Outlook 5
J Executing Ribbon Command from Code Outlook 2010 Outlook VBA and Custom Forms 3
S How to call a procedure from a custom command bar in Outlook 2007 Outlook VBA and Custom Forms 1
Similar threads


















































Top