Solved

using VB to enter values into a calander appoinment

Posted on 2011-02-18
2
295 Views
Last Modified: 2012-06-27
i wantt o enter some values into a calander appoinment using a macro,  i think i am missing something simple

i have this

    Dim SubjectName As String
    SubjectName = InputBox("Paste the subject of the ticket")
    AppointmentItem.Subject = SubjectName
0
Comment
Question by:jimcrint
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
jimcrint earned 0 total points
ID: 34931351
OK I got that bit working now I want a bit more,  I had already done this in an access form and didnt make the connection that the same system worked.

When i have the appoinment open the cursor is sitting on location I want it to sit at the start of the body (above my ticket reference)  i do this in access with gotocontrol and selstart but i cant do that here I dont think  

    Dim NewLen As Integer
    Dim myOlApp As Outlook.Application
    Dim myApptItem As Outlook.AppointmentItem
    Set myOlApp = New Outlook.Application
    Set myApptItem = myOlApp.CreateItem(olAppointmentItem)

    Dim SubjectName As String
    Dim TicketID As String
   
    TicketID = InputBox("Enter the ticket number")
    SubjectName = InputBox("Copy and Paste the subject of the ticket")

If Not IsNull(TicketID) Then
    myApptItem.Subject = SubjectName & ":  Ticket ID = " & TicketID
    myApptItem.Body = Chr(13) & Chr(13) & "[Ticket Notes ~ticRefId='" & TicketID & "']"
    myApptItem.Display (Modal)
End If
0
 
LVL 1

Author Closing Comment

by:jimcrint
ID: 35286869
I found out what I needed to do by experimentation
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question