Report

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

Ask a question SentiaD 1Posts Friday April 28, 2017Registration date April 28, 2017 Last seen - Last answered on Apr 28, 2017 at 05:23 PM by Ambucias
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?
Helpful
-2
plus moins
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

Member requests are more likely to be responded to.

Members can monitor the statuses of their requests from their account pages.

A CCM membership gives you access to additional options.

Not a member yet?

Sign up now. It takes less than a minute and is completely free!