Hi,
I have very basic VBA knowledge (self taught).
Currently I am trying to insert a row in the range where I selected the cell.
At the moment I am stuck with following code:
I receive following error when I click the button:![]()
Please Login or Register to view this content.
"Run-time error '1004': AutoFill method of Range class failed"
When I push the button, a new row is inserted but then it highlights following code when I debug it:
I attached an image of an example how my table looks like...![]()
Please Login or Register to view this content.
excel table.PNG
within the range, the cells in the first column are merged together.
Is it possible that it has something to do with the merged cell?
Sidequestion:
Example: I select cell B3 --> push "add row" button --> new row is inserted
excel table 2.PNG (example of what the result is)
It is always under the first row that a new row is inserted. How can I change the code to insert a new row under the last row?
Thank you in advance for all the help!!
Kind regards,
MeerskiD
Bookmarks