Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Protected Sheet and allowing External Data Refresh

Hi
I posted this in PE Worksheets, but was advised to try here.

here is my query.

I have protected my worksheet to stop users from chaning information, but
now the Refesh External Data does not run.
I need to unlock the worksheet to run it, but i don't want the users to do
this.

Is there a way to enable the refresh data while the worksheet is still
protected?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Protected Sheet and allowing External Data Refresh

if the refresh is forced by a macro (ie VBA) you could possibly unprotect
the sheet before refreshing then protect it again afterwards?


"ssdsibes" wrote in message
...
Hi
I posted this in PE Worksheets, but was advised to try here.

here is my query.

I have protected my worksheet to stop users from chaning information, but
now the Refesh External Data does not run.
I need to unlock the worksheet to run it, but i don't want the users to do
this.

Is there a way to enable the refresh data while the worksheet is still
protected?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Protected Sheet and allowing External Data Refresh

Hello:

I have a similar issue and I am unable to get the data refesh/update - can
somebody please advice? The code that I am using is:

Private Sub Workbook_Open()
With ActiveSheet
.Unprotect Password:="test2"
ActiveWorkbook.RefreshAll
ActiveSheet.Protect Password:="test2", _
DrawingObjects:=False, Contents:=True, Scenarios:= _
False, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
AllowFormattingRows:=True, AllowInsertingColumns:=True,
AllowInsertingRows _
:=True, AllowInsertingHyperlinks:=True, AllowDeletingColumns:=True, _
AllowDeletingRows:=True, AllowSorting:=True, AllowFiltering:=True, _
AllowUsingPivotTables:=True
End With
End Sub

I get the error saying data can not be refreshed - unprotect the sheet!!

I have the Background Refresh and Refresh on Open UNCHECKED.

Thank you.

Forge

"Patrick Molloy" wrote:

if the refresh is forced by a macro (ie VBA) you could possibly unprotect
the sheet before refreshing then protect it again afterwards?


"ssdsibes" wrote in message
...
Hi
I posted this in PE Worksheets, but was advised to try here.

here is my query.

I have protected my worksheet to stop users from chaning information, but
now the Refesh External Data does not run.
I need to unlock the worksheet to run it, but i don't want the users to do
this.

Is there a way to enable the refresh data while the worksheet is still
protected?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh Pivot table data in Protected sheet Sumanthkaka Excel Discussion (Misc queries) 3 July 16th 09 05:25 AM
Allowing insert picture on a protected sheet KoolHand103 Excel Discussion (Misc queries) 0 August 11th 08 07:12 PM
Allowing for Grouping and Ungrouping while Sheet is Protected cardan Excel Programming 2 February 14th 07 01:11 AM
Allowing hyperlinks an a protected sheet Chris Ince Excel Discussion (Misc queries) 2 November 7th 05 09:25 PM
refresh external data on a protected sheet ajf Excel Discussion (Misc queries) 0 March 11th 05 10:01 AM


All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"