hi all
sitting with a headache here at the moment.
i need a code that will according to cell E7 save the data according to the worksheet name. the cell E7 is a drop down option, so lets say cell E7 is "arts" then all data entered into the sheet should send the backup to the "arts" tab.
i have several different tabs namely, arts, crafts, admin, etc. so whenever i choose one of them in cell E7 the data should go to the corresponding sheet.
this is the code i am currently using and its not working
[Sub INCOMESHEET_Picture5_Click()
Dim lastrow As Object
Set lastrow = Sheets(Range("e7").Value).Range("a6000").End(xlUp)
lastrow.Offset(1, 0).Value = Sheet4.Range("E7").Text
lastrow.Offset(1, 1).Value = Sheet4.Range("E9").Text
lastrow.Offset(1, 2).Value = Sheet4.Range("L7").Text
lastrow.Offset(1, 3).Value = Sheet4.Range("L9").Text
lastrow.Offset(1, 4).Value = Sheet4.Range("S7").Text
lastrow.Offset(1, 5).Value = Sheet4.Range("S9").Text
lastrow.Offset(1, 6).Value = Sheet4.Range("K48").Text
MsgBox "ENTRY SUCCESFULL"
RESPONSE = MsgBox("ANOTHER ENTRY?", vbYesNo)
If RESPONSE = vbYes Then
Worksheets("INcome SHEET").Range("C3:u47").PrintOut
Else
Worksheets("INcome SHEET").Range("C3:u47").PrintOut
End If
End Sub]
i would really appreciate some help on this one
thanks
Bookmarks