subscript out of range

janefo

New Member
Joined
Sep 4, 2011
Messages
7
Hi,

I tried to add 3 non adjacent cells,but I get this error message
runtime error 9
Subscript out of range
I look at help, but did not understand it. Can someone explain to me why this happen?
Thank you,

janefo
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
hi

if you are trying to add 3 cell ,then try this

HTML:
 Range("A6").Select
        ActiveCell.FormulaR1C1 = Range("A5").Text + Range("b5").Text + Range("c5").Text
    Range("A6").Select
 
Upvote 0
That error message is usually generated when you're trying to reference a tab name incorrectly. Make sure the spelling of any tab you're referencing is exact and try again.
 
Upvote 0

Forum statistics

Threads
1,214,419
Messages
6,119,389
Members
448,891
Latest member
tpierce

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