Most frustrating program EVER!!!!

mshaynerush

Board Regular
Joined
Oct 2, 2012
Messages
96
Why, oh why, does Excel hate me so? Yesterday, I created a spreadsheet, made my macros, tested my macros several times. Success!! Saved. Opened to day, same machine, same version, just 18 hours later. Bugs Bugs Bugs!!

Here is my code:

Code:
Private Sub CancelThis_Click()
Unload Me
End Sub
Private Sub LaneDate_Change()
    If LaneDate.Value = "=" Then
        LaneDate.Value = Date
    End If
    
End Sub
Sub LaneSBL()

    Application.ScreenUpdating = False
    Sheets("Hours").Select
    Range("A2").Select
    
        Do Until ActiveCell = LaneDate
        
        ActiveCell.Offset(1, 0).Select
        
        
        Loop
        

End Sub
Private Sub LaneOk_Click()
Call LaneSBL

    ActiveCell.Offset(0, 9).Select
        
    
    ActiveCell.Value = LaneSBLHr.Value
    
    Sheets("Start").Select
    
Unload Me
End Sub
Private Sub UserForm_Click()
End Sub
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
This is a macro that takes a form data labled as LaneDate, which allows a user to use the = sign to automatically populate today's date. Then, we select the first cell in the column and go down until it finds the same value that was entered into the LaneDate field, then stops, moves over 9 rows to the right, and puts the data in the form field labeled LaneSBLHr into the active cell.

Yesterday at 3:00pm this exact code worked exactly as expected and needed. Now, it loops, goes right past the field where it should stop, and doesn't stop at all. I can't figure out why. Help!
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,668
Members
448,977
Latest member
moonlight6

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top