|
-
May 6th, 2005, 11:42 AM
#1
Thread Starter
Junior Member
subscript out of range?
I've got a piece of code that adds the values in cells J12:J30 together and gives the total. In theory this should work:
Set Comm = Worksheets("Sheet2").Range("J12:J50")
showComm = Application.WorksheetFunction.Sum(Comm)
MsgBox showComm
I keep getting a "Subscript out of range" error. Any ideas?
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
|