SnuggleMuffin
New Member
- Joined
- Jan 15, 2018
- Messages
- 2
Hello,
So I have two sheets, "Insert" and "Database", in this workbook. The "Insert" sheet accepts three user inputs, "Book Title", "Author(s)", and "Year Published", which I am trying to insert into a new row at the bottom of the table in "Database", in columns A, B, and C respectively.
Right now I have the user inputs saved into variables.
Simple enough. What has me stumped is how to insert a new row at the bottom of the table in sheet "Database" with strTitle, strAuthor, and strDate insert into columns A, B, and C respectively in the new row.
Surprisingly I used to be a macro wizard two years ago :O. It just doesn't seem to be coming back as quickly as I had hoped!
If someone could help guide me in the right direction that'd be appreciated!
So I have two sheets, "Insert" and "Database", in this workbook. The "Insert" sheet accepts three user inputs, "Book Title", "Author(s)", and "Year Published", which I am trying to insert into a new row at the bottom of the table in "Database", in columns A, B, and C respectively.
Right now I have the user inputs saved into variables.
Code:
Private Sub CommandButton1_Click()
Dim strTitle As String
Dim strAuthor As String
Dim strDate As String
strTitle = Sheets("Insert").Cells(3, 2).Value
strAuthor = Sheets("Insert").Cells(3, 4).Value
strDate = Sheets("Insert").Cells(3, 6).Value
End Sub
Simple enough. What has me stumped is how to insert a new row at the bottom of the table in sheet "Database" with strTitle, strAuthor, and strDate insert into columns A, B, and C respectively in the new row.
Surprisingly I used to be a macro wizard two years ago :O. It just doesn't seem to be coming back as quickly as I had hoped!
If someone could help guide me in the right direction that'd be appreciated!