mtheriault2000
Well-known Member
- Joined
- Oct 23, 2008
- Messages
- 826
Hello
Amateur question, but maybe I'm to tire
From VBA, I want to insert a directly row on a sheet without previously selecting the sheet. How can I do that?
My code that doen't work:
Martin
Found the solution
Amateur question, but maybe I'm to tire
From VBA, I want to insert a directly row on a sheet without previously selecting the sheet. How can I do that?
My code that doen't work:
Code:
Sheets("List_ZoneOfInterest").Row("2:2").Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Martin
Found the solution
Code:
Sheets("List_ZoneOfInterest").Range("A2").EntireRow.Insert
Last edited: