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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,223,284
Messages
6,171,180
Members
452,388
Latest member
Lorenzo_Barry

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