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?
 

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
16,297
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,297
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,082,371
Messages
5,365,055
Members
400,819
Latest member
Gossow

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top