Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-08-08
4
Medium Priority
?
517 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
[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
4 Comments
 
LVL 17

Expert Comment

by:Cem Türk
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 1500 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

596 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