Hi there, i am new to vba coding and i need some help with a code i made.
I am trying to build a code that will add a new row to a table automatically if the current month is greater then the newest month that is currently in the table
for example if the latest row shows info for December 2019 than the code will add a new row for January 2020. here is the code i made:
When i try to run it, it saysPlease Login or Register to view this content.
"run time error 13:
type mismatch"
and highlights the if function line...
Please if anyone can tell me what i am doing wrong it will be of great value to me!!
Bookmarks