Runtime Error

Newbie74

New Member
Joined
Feb 6, 2014
Messages
10
Hi,

I'm trying to get my head around Arrays. What I want to do is sum three values in an array and then split them out into the cell c1. I want it then to move down and then sum the next three cells and keep repeating until there are no more cells to sum. I have come up with the following code however I keep getting a runtime error.

Dim Store As Single
Dim RangeCells(1 To 3) As Single


Range("c1").Select




For i = 1 To 3




Selection.Offset(i, -1).Value = Store




Next


Application.Sum.RangeCells(Store) = ActiveCell


Any help would be much appriciated
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,060
Latest member
mtsheetz

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