Weird Error 400 problem

Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,345
I have some code which works for me, but gives an Error 400 message to another remote user.
MsgBox 1
ActiveSheet.Unprotect Password:="abc"
MsgBox 2
Range("ShiftMonths").Copy

2 is the last message the user receives before the code fails.
"ShiftMonths" is a range on the active worksheet.

I'm at a loss to understand why if fails for him when it works fine for me.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
See what is returned if 2nd message box is replaced with ..

Code:
MsgBox 2 & vbCr & ThisWorkbook.Names("ShiftMonths").RefersTo
 
Upvote 0
Hi Yongle. Many thanks for your reply. As it happens, I have found a workaround for the original problem and no longer have the file in question. Nonetheless, I am intrigued by your check which I have never used before and have stored it away in my 'toolbox'.
Thanks again and best wishes.
 
Upvote 0

Forum statistics

Threads
1,215,420
Messages
6,124,802
Members
449,190
Latest member
cindykay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top