+ Reply to Thread
Results 1 to 4 of 4

Incrémentation

  1. #1
    Registered User
    Join Date
    11-13-2017
    Location
    algeria
    MS-Off Ver
    2016
    Posts
    2

    Incrémentation

    hello
    fistly i work with excel and vb6.0
    i have in excel sheet d3=1 d4=5 d5=10
    I want increment myrange d3 to d5 with time enter in text1.text=1000ms
    but i found problem this code:

    Dim xl As New Excel.Application
    Dim xlw As Excel.Workbook
    Dim wsxlw As Excel.Worksheet


    Private Sub Command1_Click()


    Dim ta, da%, i%
    Dim myRange As Range
    Set xlw = xl.Workbooks.Open(App.Path & "\Nr.xlsx")
    Set wsxlw = xlw.Worksheets("sheet1")


    da = CInt(Text1.Text)
    Set myRange = wsxlw.Range("D3", "D5")


    With myRange

    For i = 1 To .Rows.Count
    Label1.Caption = .Cells(i, 1)
    DoEvents
    DoEvents

    t=timer: ta = t + da / 1000
    Do
    t=timer

    Loop While t < da
    DoEvents
    Next i
    End With
    xlw.Save
    xlw.Close
    Set xlw = Nothing
    Set wsxlw = Nothing
    Set xl = Nothing
    End Sub

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Incrémentation

    Hi,

    First, please use code tags when posting code, or we are not allowed to assist you.

    Once you have edited your post to add the tags, perhaps you can explain exactly what you mean by this
    Quote Originally Posted by DWMOH View Post
    but i found problem this code:
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Incrémentation

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  4. #4
    Registered User
    Join Date
    11-13-2017
    Location
    algeria
    MS-Off Ver
    2016
    Posts
    2

    Re: Incrémentation

    thanks i have found the solution

+ 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. SI function incrementation
    By seyf1981 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-09-2017, 12:49 PM
  2. [SOLVED] Easy Date Incrementation in a formula
    By MartinS2016 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-07-2016, 05:35 AM
  3. cell incrementation
    By everythingneon in forum Excel General
    Replies: 2
    Last Post: 07-01-2011, 11:00 AM
  4. Help with incrementation
    By s.walsh87 in forum Excel General
    Replies: 2
    Last Post: 07-15-2010, 04:01 AM
  5. Scroller Incrementation
    By unique in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-04-2005, 06:25 PM
  6. [SOLVED] Scroller Incrementation:dynamic chart working,
    By unique in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-04-2005, 11:20 AM
  7. Row incrementation not working.
    By Brian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2005, 02:06 PM

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