Good afternoon,
I am new to the VBA side of Excel and have a tiny understanding of VBA. I currently have a problem in creating a list of questions with a Yes, No or N/A answer and then having a comments box at each question if required.
What I want to do is have a basic front page with several buttons, one to open the checksheet, and one to open the raw data. (From that raw data I will produce reports/graphs)
I have a bit of code within a userform as follows:
'Used to put data into sheet 2
RowCount = Worksheets("DATA").Range("B1").CurrentRegion.Rows.Count
With Worksheets("DATA").Range("B1")
.Offset(RowCount, 0).Value = TB_PART_NUMBER.Value
.Offset(RowCount, 1).Value = TB_FAIR_REF.Value
.Offset(RowCount, 2).Value = CB_MEP.Value
.Offset(RowCount, 3).Value = DateValue(TB_DTE.Value)
.Offset(RowCount, 4).Value = CB_REGION.Value
.Offset(RowCount, 5).Value = OP_1.Value
.Offset(RowCount, 6).Value = OP_3.Value
.Offset(RowCount, 7).Value = OP_5.Value
.Offset(RowCount, 8).Value = OP_7.Value
.Offset(RowCount, 9).Value = OP_9.Value
.Offset(RowCount, 10).Value = OP_11.Value
.Offset(RowCount, 11).Value = OP_13.Value
.Offset(RowCount, 12).Value = OP_15.Value
End With
Now this is putting the data where I would like it but I can only access that currently when I am in the userform and press play on the macro. I would like that code to run when a button is pressed from the front sheet.
I don't suppose someone has a simple sheet which I could modify/copy...
If I need to explain any better please state and I will try to.
Regards
Bookmarks