Hi All,
Long time lurker/learner, after searching through the boards I am stuck on this one! My skillset it pretty basic but what I am trying to accomplish is the following:
Sheet1 = Column J is full of check boxes. Once the checkboxes are selected I want to select copy columns A to I of that specific row (data starts on row 3) and copy it to the next open row on the next sheet (QuoteDataSheet) starting on Cell B3. I need this to run through ~500-1000 rows of data/checkboxes on Sheet1 (depending on how long it would take to run).
Essentially I want to check a box to confirm I want to pursue a quote, once I check that box I want the data to move to another sheet and create a unique number for each quote without duiplicating data.
Seems simple, apparently not to simple for me!
Below is what I have so far and it is not working...
Sub MoveData()
Dim R As Integer, K As Integer
R = 1
K = 3
If ActiveSheet.CheckBoxes("Check Box " & R).Value = 1 Then
Range(Cells(K, "A"), Cells(K, "I")).Select
Selection.Copy
Sheets("QuoteDataSheet").Select
Columns("B").Find("", Cells(Rows.Count, "B")).Select.Paste
Range("B1").Select
Else
End If
Next K, R
End Sub
The error I get is Compile Error - Next without For.
Thank you for any help!
Long time lurker/learner, after searching through the boards I am stuck on this one! My skillset it pretty basic but what I am trying to accomplish is the following:
Sheet1 = Column J is full of check boxes. Once the checkboxes are selected I want to select copy columns A to I of that specific row (data starts on row 3) and copy it to the next open row on the next sheet (QuoteDataSheet) starting on Cell B3. I need this to run through ~500-1000 rows of data/checkboxes on Sheet1 (depending on how long it would take to run).
Essentially I want to check a box to confirm I want to pursue a quote, once I check that box I want the data to move to another sheet and create a unique number for each quote without duiplicating data.
Seems simple, apparently not to simple for me!
Below is what I have so far and it is not working...
Sub MoveData()
Dim R As Integer, K As Integer
R = 1
K = 3
If ActiveSheet.CheckBoxes("Check Box " & R).Value = 1 Then
Range(Cells(K, "A"), Cells(K, "I")).Select
Selection.Copy
Sheets("QuoteDataSheet").Select
Columns("B").Find("", Cells(Rows.Count, "B")).Select.Paste
Range("B1").Select
Else
End If
Next K, R
End Sub
The error I get is Compile Error - Next without For.
Thank you for any help!