AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,099
- Office Version
- 2019
- 2010
- Platform
- Windows
Just wondering why this goes to error 91 "object or with block not set"
Both 'a=' lines result in the same error 91
Thanks.
Code:
Dim MyRange as Range
Dim a
Set MyRange = Application.Range("Sheet1!A2:G2")
a= MyRange(1).comment.text
' Set a= MyRange(1).comment.text
Thanks.