Copy and paste assistance

Covington126

New Member
Joined
Feb 9, 2019
Messages
2
Hello,

VBA...

I want to copy a data set to a new sheet 4 times. Each time it paste I want to label each row either start 1, start 2, finish 1 or finish 2 in a new column. So the first time the data copies will all be start 1 and so on. Any suggestions?
 

Some videos you may like

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
16,718
Office Version
2013
Platform
Windows
I see your new to the forum

When looking for help it's always best to provide specific details.

You said:
I want to copy a data set to a new sheet 4 times.

You need to say something like this:

On Sheet named "Master" copy The Range("A1:A35")

And paste it into a New sheet I want the script to make.
Name the new sheet "Excel"


And paste the data where?

You said:
Each time it paste I want to label each row either start 1, start 2, finish 1 or finish 2 in a new column.

Label each Row ??
Do you mean enter Start1 in Range("B1") and then Enter Start2 in Range("C1")
And paste the range below.

And do you want to copy formulas and formatting or only values?
Is the range we are copying only one column Wide?

See we need more specific details like this.



You did not say where this Data set is.
 

Covington126

New Member
Joined
Feb 9, 2019
Messages
2
Thanks!!

Basically I want to use my same data source 4 times and add a new field per time I paste it to identify which use of the data it is. Example a row will have a start and stop date with other information. I want to use the start date with the first row of data and do some calculations off of that and the second time use the finish date and calculate data off of it for that.

On sheet 1 I want to copy the entire data set and paste it to sheet 2. Let’s say it pastes 5 columns of data, I would like to add a column for each row (let’s say column 6) that would add an identifier to each row. The first time the data pastes I want to call it “start 1” in column 6 per row. The second time it pastes I want to call it “finish 1” in column 6 per row.

I want to paste values
 

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
16,718
Office Version
2013
Platform
Windows
This is beyond my knowledgebase.
I will continue to monitor this thread to see what I can learn.

I'm not even sure what:

copy the entire data set means.

I normally use a Term like Copy The Range("A1:G42")

Or copy Range Named "MyData"
 

Forum statistics

Threads
1,089,220
Messages
5,406,935
Members
403,113
Latest member
ms_excel_recal_or_die

This Week's Hot Topics

Top