Specify where the next row and column should start

StartingOut

Board Regular
Joined
Feb 1, 2011
Messages
92
Hi not sure what I am doing. the code here will goto the DataBase sheet and find the next row empty and populate the cell across with data, but it starts in column A at row 2, how do I tell it to start in column N in row 16.

Help please

With Worksheets("DataBase")
NextRow = .Cells(.Rows.Count, "A").End(xlUp).Row + 1
.Cells(NextRow, 1).Value = TextBox53.Value
.Cells(NextRow, 2).Value = ComboBox1.Value
.Cells(NextRow, 3).Value = TextBox19.Value
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try

Code:
With Worksheets("DataBase")
    NextRow = .Cells(.Rows.Count, "N").End(xlUp).Row + 1
    .Cells(NextRow, 14).Value = TextBox53.Value
    .Cells(NextRow, 15).Value = ComboBox1.Value
    .Cells(NextRow, 16).Value = TextBox19.Value
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,348
Members
452,907
Latest member
Roland Deschain

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