Mar 11 2023 07:28 PM - edited Mar 12 2023 06:32 AM
So i have
Dim NewRow As Integer
Dim WS As Sheet1
Set WS = Sheets("DashBoard")
NewRow = WS.Cells(WS.Rows.Count, "B").End(xlUp).Row + 1
WS.Cells(NewRow, 2).Value = TextBox.Value
I want it to check the first cell in Row B2 if its empty if so then Drop one row down and check again if empty then .value = TextBox.Value
if someone can help i was looking but nothing i can find.
Mar 11 2023 08:16 PM
Mar 12 2023 06:40 AM
Actually that's not clear either so i have (data in B1) B2,B3 are empty that is where i want data to go.
B4 has data in it with this script i have it puts .Value in B5 but i want the data to go into B2 and B3
Mar 12 2023 07:44 AM
SolutionPerhaps
Dim WS As Worksheet
Dim NewCell As Range
Set WS = Worksheets("DashBoard")
Set NewCell = WS.Range("B4").End(xlUp).Offset(1)
NewCell.Value = TextBox.Value
Mar 12 2023 07:44 AM
SolutionPerhaps
Dim WS As Worksheet
Dim NewCell As Range
Set WS = Worksheets("DashBoard")
Set NewCell = WS.Range("B4").End(xlUp).Offset(1)
NewCell.Value = TextBox.Value