Hello world,
My supervisor asked me to generate a meeting minute with macro features on Excel. So am basically baby new to VBA.
I was able to create a button that adds rows which works.
Private Sub CommandButton1_Click()
Sheets("Minutes_temp"). Range ("A32"). Select
ActiveCell.EntireRow.Insert Shift:=xlDown
Sheets("Minutes_temp"). Range("A32:D32"). Select
Selection.Borders.Weight = xlThin
End Sub
Now my challenge is .... When I insert new rows above row A32 in the worksheet it changes the flow of the macro button when clicked on to "add new row".
I will like my "add new row" button to add rows below when clicked on and not being affected if rows are inserted above it.
Thanks for your solutions in advance.
My supervisor asked me to generate a meeting minute with macro features on Excel. So am basically baby new to VBA.
I was able to create a button that adds rows which works.
Private Sub CommandButton1_Click()
Sheets("Minutes_temp"). Range ("A32"). Select
ActiveCell.EntireRow.Insert Shift:=xlDown
Sheets("Minutes_temp"). Range("A32:D32"). Select
Selection.Borders.Weight = xlThin
End Sub
Now my challenge is .... When I insert new rows above row A32 in the worksheet it changes the flow of the macro button when clicked on to "add new row".
I will like my "add new row" button to add rows below when clicked on and not being affected if rows are inserted above it.
Thanks for your solutions in advance.