Error "Range of object Global failed"

Solved/Closed
adikademani
Posts
6
Registration date
Monday October 24, 2016
Status
Member
Last seen
November 24, 2016
- Oct 27, 2016 at 03:58 AM
 adikademani - Oct 27, 2016 at 01:59 PM
Hello Everyone,

Kindly check my code for mistakes. I am getting an error in this part of my code as "range of Object _Global failed".

Dim feat_ure As String
ActiveCell.Offset(0, 1).Activate

feat_ure = Range(ActiveCell).Value

Thanks in advance

2 replies

TrowaD
Posts
2886
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
June 27, 2022
515
Oct 27, 2016 at 11:04 AM
Hi adikademani,

ActiveCell is already a range so change:
feat_ure = Range(ActiveCell).Value

into:
feat_ure = ActiveCell.Value

Or use:
feat_ure = ActiveCell.Offset(0, 1).Value

Best regards,
Trowa
0
thanks a lott trowaD :)
0