URGENT!!! Copy rows based on dates

lecet444

Board Regular
Joined
May 18, 2011
Messages
91
I'm trying to activate the hyperlinks based on a specified date range


Excel Workbook
ABCDEFGHIJ
12June 14, 20117417MikesupplierDan$ 507.15
13June 14, 20117418MikesupplierDan$ 745.20
14June 16, 20117419MikesupplierDan$ 282.90
15June 16, 20117419MikesupplierDan$ 3,179.75
16June 16, 20117420MikesupplierDan$ 2.30
17June 16, 20117421MikesupplierDan$ 2.30
18June 16, 20117422MikesupplierDan$ 2.30
19June 16, 20117423MikesupplierDan$ 2.30
20June 16, 20117424MikesupplierDan$ 2.30
Sheet2
Excel 2010







here is a code i'm trying to even get to work, and it's not working
(copying rows based on date range)

Code:
Dim startDate As String
Dim stopDate As String
Dim startRow As Integer
Dim stopRow As Integer
    startDate = TextBox1.Value
        If startDate = "" Then End
    stopDate = TextBox2.Value
        If stopDate = "" Then End
    startDate = Format(startDate, "mm/dd/yy")
    stopDate = Format(stopDate, "mm/dd/yy")
    startRow = Worksheets("sheet2").Columns("A").Find(startDate, LookIn:=xlValues, LookAt:=xlWhole).Row
    stopRow = Worksheets("sheet2").Columns("A").Find(stopDate, LookIn:=xlValues, LookAt:=xlWhole).Row
    Worksheets("Data").Range("A" & startRow & ":BP" & stopRow).Copy _
        Destination:=Worksheets("sheet3").Range("A3")
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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