|
-
Jul 19th, 2005, 12:38 PM
#1
Thread Starter
Member
runtime error 1004 help
Hi Guru's..
I am getting this runtime error
Method 'Range' of object '_Global' failed
Here is the code causing it:
Public Sub AddChartSheet()
Dim dataRange As Range
CAUSING ERROR ---> Set dataRange = Range(avgRange.averageRange.Text)
avgRange.Hide
....
End Sub
avgRange is the name of my UserForm, averageRange is the name of the RefEdit object. Concerning the scope of my variable, do I need to declare anything global?
Thanks!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|