Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tweacle
 
Posts: n/a
Default Macro wont update after file "read only"


I have the following macro on start up in my file.

Sub unprotectEm()
ActiveSheet.Unprotect Password:="shreked"
ActiveWorkbook.UpdateLink
Name:="R:\SHARED\PASSACC\EXCEL\PASSACC\CONTROL.XLS " _
, Type:=xlExcelLinks
ActiveSheet.Protect Password:="shreked"
End Sub



Private Sub Workbook_Open()
If ThisWorkbook.ReadOnly = True Then MsgBox "READ ONLY YOUVE BEEN
WARNED"
End Sub

It works fine until its been opened as "read only". What I mean is I
open the file and the read only msg box comes up no prob. When the file
avail for editing again I open the file and its not updating the control
list.
Can anyone help?


--
tweacle
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
Links picking up values from an older version of linked file Cate Links and Linking in Excel 4 October 20th 05 01:53 PM
Problem Editing Macro in Shared Excel File [email protected] Excel Discussion (Misc queries) 0 March 19th 05 06:01 PM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM
File asks to update when no links were created Dave Links and Linking in Excel 1 December 16th 04 08:10 PM
Macro did not run after download file from net ariffin Excel Worksheet Functions 2 November 6th 04 01:20 AM


All times are GMT +1. The time now is 09:22 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"