Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Misc > Re: Using "Me.R...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 7 Topic 1420 of 1586
Post > Topic >>

Re: Using "Me.Refresh" in Excel VBA

by "Auric__" <not.my.real@[EMAIL PROTECTED] > Jan 15, 2008 at 10:55 PM

On Tue, 15 Jan 2008 20:29:23 GMT, Yamauchi, Taka**** wrote:

> I wonder if someone can give me some suggestion.
>
> I want to show a label 1 second, and erase it and show it again.
>
> label.visible = true
> pauseme(1000)
> label.visible = false
> pauseme(1000)
> label.visible = true,.....
>
> To show them properly, I used Me.Refresh in VB6. I want to do the
> same thing in Excel VBA. But if I insert Me.Refresh in my VBA code,
> I simply get an error message saying that there is no such function
> Me.Refresh. How can I correct this? How can I show labels,
> pictures, or texts, back and forth on an Excel VBA userform?
>
> Thank you in advance for your help.

You could try something like this:

'it's up to you to determine what exit_condition is
Do Until exit_condition
    Label.Visible = Not Label.Visible
    t = Now + 1
    Application.Wait t  'this might pause the entire app -- not sure
Loop

Instead of Application.Wait, you could also try Sleep + DoEvents.

In the future, I recommend you ask Excel-related questions here:
    microsoft.public.excel.programming

-- 
What you are, not what you have, is what makes you rich.
 




 7 Posts in Topic:
Using "Me.Refresh" in Excel VBA
"Yamauchi, Takashi&q  2008-01-15 14:29:23 
Re: Using "Me.Refresh" in Excel VBA
"Judson McClendon&qu  2008-01-15 15:54:08 
Re: Using "Me.Refresh" in Excel VBA
"Auric__" <n  2008-01-15 22:55:32 
Re: Using "Me.Refresh" in Excel VBA
Derek <derekrss@[EMAIL  2008-01-17 19:25:41 
Re: Using "Me.Refresh" in Excel VBA
"Auric__" <n  2008-01-18 15:02:59 
Re: Using "Me.Refresh" in Excel VBA
"Auric__" <n  2008-01-18 15:06:59 
Re: Using "Me.Refresh" in Excel VBA
Derek <derekrss@[EMAIL  2008-01-18 20:19:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:27:07 CDT 2008.