Hello to all of you.
Here is a problem that I am stuck with on my job. I run every day report from another accounting system in excel format and data on worksheet located like this: one Set of datas are in column A-J of row 1 , and second set of dates are in the columns L to U in row 1 as well .Then in row 2 the same ne set of datas are in the columns A to J and another are in the columns L to U . I am trying to move datas that are in columns L to U to at beginning worksheet to columns A to J . First , I made a macro to insert new blank rows until end of the datas of columns A
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
Range("A1").Select<o></o>
Selection.End(xlDown).Select<o></o>
Do Until ActiveCell.Row = 1<o></o>
ActiveCell.EntireRow.Insert Shift:=xlDown<o></o>
<o> </o>
ActiveCell.Offset(-1, 0).Select<o></o>
<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-comffice:smarttags" /><st1lace w:st="on">Loop</st1lace>
<o> </o>
The macro is working , now I need to copy-paste columns L to U onto blank rows that were just entered between rows in columns A to J and delete the datas in columns L to U .The worksheet contains 1000-1500 rows averagely so that copy-paste them manually would be hard . I am green in vb specially excel so any help would ne very helpful and appreciated.
<o> </o>
Thank you in advance,
<o> </o>
The Best Regards,
<o> </o>
BorisGomel
Here is a problem that I am stuck with on my job. I run every day report from another accounting system in excel format and data on worksheet located like this: one Set of datas are in column A-J of row 1 , and second set of dates are in the columns L to U in row 1 as well .Then in row 2 the same ne set of datas are in the columns A to J and another are in the columns L to U . I am trying to move datas that are in columns L to U to at beginning worksheet to columns A to J . First , I made a macro to insert new blank rows until end of the datas of columns A
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
Range("A1").Select<o></o>
Selection.End(xlDown).Select<o></o>
Do Until ActiveCell.Row = 1<o></o>
ActiveCell.EntireRow.Insert Shift:=xlDown<o></o>
<o> </o>
ActiveCell.Offset(-1, 0).Select<o></o>
<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-comffice:smarttags" /><st1lace w:st="on">Loop</st1lace>
<o> </o>
The macro is working , now I need to copy-paste columns L to U onto blank rows that were just entered between rows in columns A to J and delete the datas in columns L to U .The worksheet contains 1000-1500 rows averagely so that copy-paste them manually would be hard . I am green in vb specially excel so any help would ne very helpful and appreciated.
<o> </o>
Thank you in advance,
<o> </o>
The Best Regards,
<o> </o>
BorisGomel