Solved

Is it possible to create a Scrolling Marquee on a Outlook Visual Basic Form?

Posted on 2004-08-08
4
498 Views
Last Modified: 2013-11-25
Can someone explain to me if it is possible to create a Scrolling Marque across an Outlook Form?  If so, in the simpliest of simple instructions could you walk me through it.  

Thanks,

itsmevic
0
Comment
Question by:itsmevic
  • 2
4 Comments
 
LVL 17

Expert Comment

by:cem_turk
ID: 11746347
i dont know much about outlook forms but in VB you can create a scrolling marquee with a label and a timer control.

by the help of the timer control you can change the position of the label continously. you should change the timers interval to determine the speed.
and you should use a code like this ;
private sub mytimer()
mylabel.left= mylabel.left -5
end sub

with this code your marquee will dissappear from the left :)
you should add some if statments to do what you want
0
 
LVL 4

Accepted Solution

by:
cachedVB earned 500 total points
ID: 11746370
private sub mytimer_timer()
mylabel.left= mylabel.left -5
if mylabel.left <= (0 - mylabel.width) then
mylabel.left = myform.width & mylabel.width
end if
end sub
0
 
LVL 4

Expert Comment

by:cachedVB
ID: 11746373
oops! its myform.width + mylabel.width
0
 

Author Comment

by:itsmevic
ID: 11748867
Is there anyway you could walk me through adding this into Outlook forms correctly.

I've went in created my label, right clicked and chose Properties, then go to, then I click on the Values tab, then I click on the New button.  I give me field a Name then set the Type as "Formula" Click on the Edit button and the Formula Window appears.  I paste the code suggested above in this Formula Window:  

 private sub mytimer_timer()
mylabel.left= mylabel.left -5
if mylabel.left <= (0 - mylabel.width) then
mylabel.left = myform.width + mylabel.width
end if
end sub

When I click oK it keeps telling me "Unknown Field"

Your help is greatly appreciated.  Thanks - itsmevic
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MsgBox 2 36
using Access 8 52
How does CurrentUser work? 10 25
How to measure sizes and angles in scanned images ? 3 26
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now