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
Solved

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

Posted on 2004-08-08
4
501 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

860 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