+ Reply to Thread
Results 1 to 3 of 3

Application.Wait code help

Hybrid View

  1. #1
    Registered User
    Join Date
    06-03-2011
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    46

    Application.Wait code help

    Hello i Have this code for application wait, But I want to set the time in textbox value not in code. Help me.

    Thank You.

    p.s Code is in VBA/Excel UseRform.

    Application.Wait Now + TimeSerial(0, 0, 15)
    Last edited by johan12; 11-24-2013 at 05:56 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Application.Wait code help

    Quote Originally Posted by johan12 View Post
    Hello i Have this code for application wait, But I want to set the time in textbox value not in code. Help me.

    Thank You.

    p.s Code is in VBA/Excel UseRform.

    Application.Wait Now + TimeSerial(0, 0, 15)
    Try something like this. Assumes the texbox contains an integer representing seconds.

    Application.Wait Now + TimeSerial(0, 0, TextBox1.Value)
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    06-03-2011
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Application.Wait code help

    Thank you AlphaFrog
    this is work prefect.

    Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Help with Application.OnTime (was Application.Wait Now)
    By Walter12 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-29-2012, 01:18 PM
  2. Application.Wait not working
    By Herbie1809 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2010, 07:11 PM
  3. Please help with Application.Wait ( )
    By Steve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2006, 04:10 AM
  4. application.wait help
    By flowtester in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-04-2005, 11:55 AM
  5. [SOLVED] Application.wait... won't!
    By Peter Rooney in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-08-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1