?
Solved

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

Posted on 2004-08-08
4
Medium Priority
?
513 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

800 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