add row Excel vba

Angelo Malfitano 46 Reputation points
2021-11-18T05:01:09.907+00:00

Hi,
I have a .xlsx file on my computer. I need a vba to add 1 row in this file on onedrive business.

https://hublogistics-my.sharepoint.com/:x:/g/personal/angelo_malfitano_hublogistics_ch/ETSkB2Xjb-hAoHCZLL7xXU8BOHSM3c0NeIKn1pVgiirlvA?e=6frCB4

Thanks for support

Angelo

Microsoft 365 and Office Development Other
Developer technologies Visual Basic for Applications
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Doug Robbins - MVP - Office Apps and Services 166 Reputation points MVP
    2021-12-05T09:38:10.923+00:00

    Use:

    With Sheets("Foglio1").Range("A1")
    .Offset(.CurrentRegion.Rows.Count, 0).Value = "Text for new row in column A"
    End With

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.