Link to home
Start Free TrialLog in
Avatar of sullym6
sullym6

asked on

this workbook has lost its vba project but vba is installed

I get this workbook has lost its vba project error when trying to open a excel file that links to Sage. This file works on all machine except one and I have tracked it down to vba not working.
I have ensured vba is installed but it still doesn't work. If I open a blank sheet and go to the developer tab Visual basic and macro buttons are greyed out.
I have done a fresh install but can't figure out why vba is disabled.

Thanks
Avatar of Jeews
Jeews
Flag of Sri Lanka image

Check the Macro security settings in the machine.

If you let us know the excel version you are using we can give you directions to enable macros
Avatar of Rory Archibald
Have you set VBA to install on first us? Can you record or run a macro at all?
Avatar of sullym6
sullym6

ASKER

It is excel 2007, macro security is set to enable all macros. It was a full install of office 2007 so Visual basic for applications is set to run from my pc

possibly add the folder where you have your files to the trusted folders for macros in the trust center.
try this
Excel options>> Trust center>> Trust center settings>>Macro Settings
and Tick as in the image attached.

tils.
untitled.JPG
Avatar of sullym6

ASKER

That does not help, I don't have options for Visual basic or macros in a new document. I am thinking it may be down to some unregistered components but I don't know which ones.
Avatar of sullym6

ASKER

tilsant that is exactly how I have it setup for macro security.
What happens if you press Alt+f11 in Excel?
Avatar of sullym6

ASKER

nothing apart from a little beep
ASKER CERTIFIED SOLUTION
Avatar of sullym6
sullym6

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can click "Accept Multiple SOlutions" to split the points, but since you answered it yourself, you should just select your own comment :)