Hi,
Please help how to add border when copying information to the sheet. ( Selection.Borders(xlDiagonalDown).LineStyle = xlNone)
Please help how to add border when copying information to the sheet. ( Selection.Borders(xlDiagonalDown).LineStyle = xlNone)
Code:
Dim iRow As Long
Dim ws As Worksheet
Set ws = Worksheets("Sheet1")
Set ws1 = Worksheets("Sheet2")
'find first empty row in database
iRow = ws.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
'copy the data to the database
ws.Cells(iRow, 1).Value = Me.textbox_data.Value
Last edited: