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?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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.
 
Upvote 0
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
 
Upvote 0
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"
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top