I want to use the incomplete vba below to modify the part with it that states; lastRow =…
Jump to turn (11)
- 1I want to use the incomplete vba below to modify the part with it that states; l
- 2Everything in the code works except it is giving me the entire list of J5:J. Wan
- 3I need to write a vba code that opens a pop up for only 3 seconds then closes it
- 4Pop up opens but does not close after 3 seconds. Pop up remains open and has to
- 5Pop Up still does not close after 3 seconds
- 6Does not work. It appears that when the pop up opens all codes are stopped from
- 7I am getting a Compile Error Do without Loop
- 8still not closing
- 9Error on Set popUpWindow = UserForms.Add(1)
- 10Error on this line: Set popUpWindow = UserForms.Add("popUpForm")
- 11Error on this line : .Name = "popUpForm"
- User
I want to use the incomplete vba below to modify the part with it that states;
lastRow = wscf.Cells(Rows.Count, "J").End(xlUp).Row Set copyRange = wscf.Range("J5:J" & lastRow) .
What I want is to copy the range from J5:J where the preceding value in column I of the same row is blank.
Dim wscf As Worksheet Dim wsjr As Worksheet Dim lastRow As Long Dim copyRange As Range
Application.ScreenUpdating = True Application.EnableEvents = True ActiveSheet.Range("F30:F34").ClearContents Application.Wait (Now + TimeValue("0:00:01")) ActiveSheet.Range("G3").Formula = ActiveSheet.Range("G3").Formula Application.Wait (Now + TimeValue("0:00:01")) ActiveSheet.Range("H3").Formula = ActiveSheet.Range("H3").Formula If ActiveSheet.Range("G3") = "" Or 0 Then Application.ScreenUpdating = True Application.EnableEvents = True
Exit Sub
End If
Set wscf = Sheets(Range("G3").Value) Set wsjr = Sheets("Start Page")
lastRow = wscf.Cells(Rows.Count, "J").End(xlUp).Row
Set copyRange = wscf.Range("J5:J" & lastRow)
End If
wsjr.Range("F30").Resize(copyRange.Rows.Count, 1).Value = copyRange.Value
Application.ScreenUpdating = True Application.EnableEvents = True
End Sub