Consulting

Results 1 to 6 of 6

Thread: Show in Label value in cell specific column (everey minute)

  1. #1
    VBAX Tutor
    Joined
    Jan 2011
    Posts
    272
    Location

    Show in Label value in cell specific column (everey minute)

    Hi

    is possible......
    I want is that the F column in the spreadsheet line by line every minute in the label is shown. Ie a macro which cuts jumping from column F and row by row showing the label to get the blank line making a loop.

    example: Label1.Caption = range ("F2") - shown for 1 minute then
    Label1.Caption = Range ("F3") - shown for 1 minute then
    and so on ...

    Cross-Post
    http://www.excelforum.com/excel-prog...ey-minute.html

    Thank you

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Sub dddd()
    Static lcap As Range
    If lcap Is Nothing Then
      Set lcap = Range("F2")
    Else
      Set lcap = lcap.Offset(1)
      If lcap.Value = "" Then Set lcap = Range("F2")
    End If
    Sheets("Sheet1").Label1.Caption = lcap.Value
    Application.OnTime Now + TimeValue("00:01:00"), "dddd"
    End Sub
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    VBAX Tutor
    Joined
    Jan 2011
    Posts
    272
    Location
    Hi
    i try using inside Userform, show next error
    time error '438 '
    The object does not support this property or method

  4. #4
    VBAX Tutor
    Joined
    Jan 2011
    Posts
    272
    Location
    Hi look my file
    Attached Files Attached Files

  5. #5
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    see attached.
    Attached Files Attached Files
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  6. #6
    VBAX Tutor
    Joined
    Jan 2011
    Posts
    272
    Location
    Hi, very very good!

    i'm very glad your help.

    Sorry, but i can't click in star show this
    You must spread some Reputation around before giving it to p45cal again.

Posting Permissions

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