VBA copy details to another excel

vozshmily

New Member
Joined
Jul 29, 2017
Messages
4
Good Day everyone,

I'm new on VBA but i badly need this code.

copy certain details in one excel in random postion [=sum(e1:xx)] and a positive number not zero

i like to put in on a certain excel and on a certain cell the 2 details

hope someone can help
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Think you need to be a lot more clearer about exactly what you want.

Copying cells can be as simple as Range("A1").Value = Range("B1").Value. I'm not sure what you mean by in one excel and putting it on a certain excel, so you mean a new cell , new worksheet or even in an entirely new workbook.

You can generate random numbers easily enough, using Int ((100 - 1 + 1) * Rnd + 1) gives a random number between 1 and 100. So with all these parts you can use it to generate a random cell to copy into a random cell in another workbook if needed.
 
Upvote 0
Transfers FeeBalance
48.78
48.78
-147.78
-245.78
-342.78
-438.78
-533.78
-627.78
-720.78
-812.78
-93.78
3.78
-45-41.22

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


this is an example... the -45 is =sum(e1:eXXX) i need to copy that and put it on a specific excel location example B12...then the 3.78 i need to copy it too and put on a specific excel location too example J10...without opening the excel file
 
Upvote 0

Forum statistics

Threads
1,215,457
Messages
6,124,941
Members
449,198
Latest member
MhammadishaqKhan

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