VB Range Error

dpman

New Member
Joined
Sep 15, 2011
Messages
4
Good Afternoon,

I'm running a macro which is designed to populate one sheet using another and i am getting a:

"Method 'Range' of object '_Global' failed" Error

The error lies in the following code:

Range("CFaR_" & MA_rangenum(counter)).Value = MA_range

Any help would be greatly appreciated.

Many Thanks
Dpman
 

Some videos you may like

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

doofusboy

Well-known Member
Joined
Oct 14, 2003
Messages
1,325
Excel expects to find row and cell references between the red parentheses below [something like "A1" or "A1:B5"]:

Range("CFaR_" & MA_rangenum(counter)).Value = MA_range

Evidently your "CFaR_" & MA_rangenum(counter) does not resolve to a proper cell/range reference.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,462
Messages
5,596,280
Members
414,051
Latest member
tabecker

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
Top