Copy and insert rows n number of times in Excel [Solved/Closed]

SentiaD 1 Posts Friday April 28, 2017Registration date April 28, 2017 Last seen - Apr 28, 2017 at 06:20 AM - Latest reply: Ambucias 55606 Posts Monday February 1, 2010Registration dateModeratorStatus October 20, 2018 Last seen
- Apr 28, 2017 at 05:23 PM
I am trying to create a macro under Excel.

My data is as follows:

Col1 Col2 Col3 Col4 Col5 Col6 Col7
A1 1080 90 M 40 45 50
A2 999 90 M 25 30 35

I need output as follows

Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8 Col9 Col10 Col11 Col12 Col13
A1 1 1080 90 C M 0 0 40 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'
A1 2 1080 90 C M 0 0 45 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'
A1 3 1080 90 C M 0 0 50 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'
A1 4 1080 90 C M 0 0 40 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'
A1 5 1080 90 C M 0 0 45 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'
A1 6 1080 90 C M 0 0 50 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'

A2 1 999 90 C M 0 0 25 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'
A2 2 999 90 C M 0 0 30 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'
A2 3 999 90 C M 0 0 35 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'
A2 4 999 90 C M 0 0 25 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'
A2 5 999 90 C M 0 0 30 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'
A2 6 999 90 C M 0 0 35 UserID CURRENT_TIMESTAMP CURRENT_TIMESTAMP '9999-12-31 23:59:59.999999'


can anyone help me out with VBA code?
See more 

1 reply

Ambucias 55606 Posts Monday February 1, 2010Registration dateModeratorStatus October 20, 2018 Last seen - Apr 28, 2017 at 05:23 PM
-2
Thank you
Greetings,

Please, bare in mind that CCM is a mutual aid community, all answers on the forum are provided by volunteers who give their time free to help solve issues.

Hence we request that CCM forum users show mutual respect. Therefore, when asking for assistance, please be courteous, as for elsewhere in similar circumstances in every day society when asking for help. (Usually, how would someone ask for help? i.e. please, thank you, appreciate, grateful, etc.)

Being courteous will also increase your chances of getting the help you need.

http://ccm.net/contents/948-terms-of-use-for-ccm-respect-for-others

Please, copy, modify and repost your message respecting the politeness charter.

We trust that you understand.

Moderator