excel - Insert a Row to a Specific Set of Columns -


i'm working on spreadsheet act master copy important information kept track of project. on main sheet have table notes , table contacts set separated several columns , vb code insert new notes or new contacts. however, when insert new note want appear @ top of table , move existing notes down row. there way add row specific set of columns other data kept on cells same row, in different table, not moved?

a basic example:

dim rng range set rng = worksheets("sheet1").range("a2:d2") rng.insert shift:=xldown 

...assuming want insert 1 row of cells above cells located in a2:d2.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -