ParanoidAndroid
Board Regular
- Joined
- Jan 24, 2011
- Messages
- 50
Hi Mr Excel
I want to hide a macro button in a certain condition..
I'm pretty sure my problem is the apostrophies ' ' within the inverted commas " " that exist before around the .xls part 'Internal Account.xls'!send_To_Account_Opening
How do i fix this?
Help most appreciated
I want to hide a macro button in a certain condition..
I'm pretty sure my problem is the apostrophies ' ' within the inverted commas " " that exist before around the .xls part 'Internal Account.xls'!send_To_Account_Opening
How do i fix this?
Help most appreciated
Code:
If Range("D9") = Sheets("Sheet1").Range("B75") then
Sheets("Application Form").Shapes("'Internal Account.xls'!send_To_Account_Opening").Hide
Else
Sheets("Application Form").Shapes("'Internal Account Application Form.xls'!send_To_Account_Opening").Visible
End If