+ Reply to Thread
Results 1 to 1 of 1

Cell Changed and Recorded to other Cell (alternately)

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-17-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    187

    Smile Cell Changed and Recorded to other Cell (alternately)

    Hi Guys,

    How to record every changing value in Cell (by SpinButton) and will be recorded alternately to another Cell (starting from "B16").
    Please find the file to get clear an idea and code.
    Thank you so much for any helps and advice.

    Private Sub CommandButton1_Click()
    Dim PauseTime, Start, Finish, TotalTime, MyTime
    Do
        Start = Timer
        DoEvents
        Sheet1.[B4] = Start
        UF1.Label1.Caption = Round(Start, 1)
        UF1.Label1.Caption = Format(Now)
    Loop
    End Sub
    
    Private Sub CommandButton2_Click()
    End
    End Sub
    
    Private Sub SpinButton1_SpinDown()
    Dim MyTime
    MyTime = Time
    Sheet1.[B8] = Format(MyTime)
    
    On Error Resume Next
    If Sheet1.[B12] > 0 And Sheet1.[B12] <= 100 Then
    Sheet1.[B12] = Sheet1.[B12] - 1
    UF1.Label2.Caption = Sheet1.[B12]
    Me.TextBox1.Value = Sheet1.[B12] / Sheet1.[C12] * Sheet1.[C13]
    Sheet1.[B13] = Me.TextBox1.Value
    End If
    End Sub
    
    Private Sub SpinButton1_SpinUp()
    Dim MyTime
    MyTime = Time
    Sheet1.[B8] = Format(MyTime)
    
    On Error Resume Next
    If Sheet1.[B12] >= 0 And Sheet1.[B12] < 100 Then
    Sheet1.[B12] = Sheet1.[B12] + 1
    UF1.Label2.Caption = Sheet1.[B12]
    Me.TextBox1.Value = Sheet1.[B12] / Sheet1.[C12] * Sheet1.[C13]
    Sheet1.[B13] = Me.TextBox1.Value
    End If
    End Sub
    Kind Regards,
    Iqbal
    Attached Files Attached Files
    Last edited by iqballud; 09-25-2014 at 05:03 AM.

+ 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. Replies: 7
    Last Post: 05-07-2014, 02:01 AM
  2. [SOLVED] want to edit recorded macro code or copy a cell with formula and paste it down to "x" cell
    By bmbalamurali in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 10-25-2013, 04:57 PM
  3. Hyperlinks changed name when macro recorded
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2012, 08:17 AM
  4. Dynamic/dependent data validation lists - reset second cell if first cell changed
    By gazza365 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2010, 06:59 PM
  5. Replies: 3
    Last Post: 04-05-2007, 05:44 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