Protected View

JerryH09

New Member
Joined
Jan 25, 2011
Messages
33
Hi All,
When I scrape a file from the web it comes in "protected view". When I use the recorder for this being unprotected. I get:
application.activeprotectedview.edit=false. When I run this on a new file I get run time error 91. Not sure exactly what object I'm supposed to define and set. Help.
Regards
JerryH
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
when you run the code do you have the protectedview visible to you.

If not, you might add On Error Resume Next prior to that line so if there is nothing to do, you don't get an alert
 
Upvote 0
when you run the code do you have the protectedview visible to you.

If not, you might add On Error Resume Next prior to that line so if there is nothing to do, you don't get an alert
Hi Mole999, This is the endstage of the last time you tried to help me. I've got hold of a data scraper and can get the data I want but in a protected view. This is the macro I'm running:
Sub test6()
'
' test6 Macro
'
On Error Resume Next
ActiveWindow.ActivateNext
application.ActiveProtectedViewWindow.Edit = False
ActiveWindow.ActivateNext
End Sub
. The ActivateNexts are because I'm looking at my main spreadsheet but want to unprotect my scraped file. Adding the on error resume next means the macro doesn't do anything. Would a copy of the scraped file be any use?
Regards,
JerryH09
 
Upvote 0
if you have a cloud location to share through, that might help, somewhere free that doesn't require a user registration
 
Upvote 0
if you have a cloud location to share through, that might help, somewhere free that doesn't require a user registration

Hi Mole999,
I have some cloud storage and one section is called public. I don't know how you'd access it. Do you have an email address I could send it to?
Regards,
JerryH09
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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