Good day! You need to write in the last filled line of the column "A" a certain value. Here this code writes in the current sheet, and I need in the specific. How to fix?
Dim ra As Range Set ra = Range("A" & Rows.Count).End(xlUp).Offset(1) ra = TextBox6.Value
Set ra = Worksheets("нужный лист").Range("A" & Rows.Count).End(xlUp).Offset(1)You can even write this whole expression in one line:Worksheets("нужный лист").Range("A" & Rows.Count).End(xlUp).Offset(1) = TextBox6.Value- Eduard Izmalkov