VBA, copy data into new sheets. Please can someone help a newbie

MrRail

New Member
Joined
Jun 14, 2023
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi im very new to VBA, my boss has asked me to do something I have very little experience in in a short amount of time :(

I have a large data set exported from a simulation software which looks like this:

5​
5​
0​
-3.34384​
45000.55​
0.109103​
-3.23011​
45000.2​
0.109103​
0.017424​
33.0513077​
0.0146043​
0.0095028​
5​
11436​
0​
-3.23011​
45000.2​
0.109103​
-3.11638​
44999.86​
0.109103​
0.017424​
33.0534286​
0.014604​
0.0095033​
6​
6​
0​
-2.36637​
45000.1​
0.109103​
-2.74138​
44999.98​
0.109103​
0.017426​
33.029213​
0.01461​
0.0094985​
6​
11437​
0​
-2.74138​
44999.98​
0.109103​
-3.11638​
44999.86​
0.109103​
0.017424​
33.0541​
0.0146039​
0.0095035​
7​
7​
0​
-2.54126​
-0.21678​
0.109103​
-2.45382​
-0.05915​
0.109103​
0.716242​
-75.0360794​
0.1849414​
-0.6919532​
7​
11438​
0​
-2.45382​
-0.05915​
0.109103​
-2.36637​
0.098473​
0.109103​
0.716274​
-75.033905​
0.1849758​
-0.6919768​
8​
8​
0​
0.876733​
-0.18433​
0.109103​
0.955176​
-0.04293​
0.109103​
0.715833​
-75.0765915​
0.1843466​
-0.6916881​
8​
11439​
0​
0.955176​
-0.04293​
0.109103​
1.033619​
0.098473​
0.109103​
0.715866​
-75.0744095​
0.1843817​
-0.6917138​
9​
9​
0​
-2.36637​
0.098473​
0.109103​
-2.36637​
2.462263​
0.109103​
0.716279​
-75.0293961​
0.1850315​
-0.691967​
9​
6354​
0​
-2.36637​
2.462263​
0.109103​
-2.36637​
58.01782​
0.109103​
0.708201​
-75.4935532​
0.1773965​
-0.6856233​
9​
6355​
0​
-2.36637​
502.4622​
0.109103​
-2.36637​
564.9623​
0.109103​
0.57189​
-84.3890305​
0.0559157​
-0.5691503​


I need a code that looks at the first column which is conductor id, and then copies all the columns for the rows that for example into a new sheet.

So for conductor 9, id need all 3 rows moving into the new sheet.

Ill need to repeat this for 10 other conductor ids into new sheets too, can i just add it as another sub below?

Im sorry for the newbie question. THis VBA is really interesting and i cant wait to learn more, Im just very pressed for time :(
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Pressed for time and its only 10 times , filter column with conductors, copy and Paste (values) to new sheets as needed
 
Upvote 0
Pressed for time and its only 10 times , filter column with conductors, copy and Paste (values) to new sheets as needed
I have to do for 10 conductors for 16 different simulation results.
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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