VBA Password Help needed.

XLXRider

Board Regular
Joined
Jul 31, 2004
Messages
180
I've hunted the board, can't find out the answer to this one:

I go to protect my VBA project in the VBA Editor. Excel asks for a password. I put one in, and every single time I get the message "invalid password" along with the dialog box telling me that my project is locked. Which, of course, it is not.

I've tried short passwords, long passwords, alphanumeric passwords, CApS AnD LowER case passwords, you-name-it. No luck.

Can anyone tell me what the heck is going on? Note that I have this issue on Excel here at work and at home. Excel 2003. Different copies of Excel, too... I'm thinkin' I musta screwed something up, but don't know what. Please help!!

Thanks in advance!

Regards,
XLXRider
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Sounds like a password got set on the VBA project. Whether intentional or accidental, or by someone else.....

No way around it I'm afraid. At least not by any means you'll find here.
 
Upvote 0

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,380
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Just to check - you definitely selected your project before trying to add the password?
 
Upvote 0

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,358
Office Version
  1. 365
Platform
  1. Windows
Are you sure it's your project causing the problem?

I recently came across an attachment from an OP where I could see the code.

But then I got the error message that a reference or library was missing.

Then I was prompted for a password but I was able to cancel that out.

So I'm thinking the old Tools>References..., check for MISSING gig.

Nope, prompted for password again.:eek:

Eventually the OP posted the password but by that time I was a wee bit fed up so left the project for a particularly rainy day.:)
 
Upvote 0

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,380
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Oh, one other thing: do you have Google Desktop installed?
 
Upvote 0

XLXRider

Board Regular
Joined
Jul 31, 2004
Messages
180
Well, I don't think I was exactly selecting my project properly! This is the first time in all the years I've been Excel-ing that I've needed to protect a project.

So, with the suggestions here, I got it solved!

THANKS to all!

Regards,
XLX
 
Upvote 0

Forum statistics

Threads
1,191,116
Messages
5,984,733
Members
439,905
Latest member
VBAhelpplz

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
Top