Enable Editing Code

Mozzz

Board Regular
Joined
May 30, 2011
Messages
66
When I open a file I get the "Enable Editing" Button which I have to select to be able to run a macro that I wrote. would like to be able to open the file and enable editing as part of my Maco.

What is the VBA code to "Enable Editing"?

Help
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Have you placed the file in a Trusted Location? If so, you should not be getting that message. I don't think that there is a VBA option for overriding those settings; otherwise the settings themselves would be useless.

Denis
 
Upvote 0
I receive a Time Sheet from our outside Slsman every morning. I have written a small maco that takes his data and adds it to the main sheet so we can convert the whole month into a pivot table. I would like to be able to open the email excel attachment and just run my macro.

I am new to the forums, not sure if I can send you the file or not.

I am pretty new to excelVBA so I am not up on putting an email or attachment into a trusted site. How exactly would I do that?

Thanks,
 
Upvote 0
To set up a trusted location (2007) -- 2010 is similar but I don't have that on my PC.
To to the Excel Options.
Click on Trust Center
Click on Trust Center Settings (button on right)
Click on Trusted Locations
Bottom right, Add New Location
Browse to the folder that you want to trust (eg Desktop, then click on My Documents). Make sure that Trust subfolders is checked, then OK.

Now, any documents in this location will open without security prompts.
Email attachments will always give you the editing message (are you using 2010?) until you save them in a trusted location.

Denis
 
Upvote 0
Yes, I am using 2010. Not a big deal I will just have to enable and then run the macro. Still turns a 5 minute job into about 30 seconds.

Thanks,
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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