Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default clear the file now available msgbox

Bob Phillips very kindly solved my problem in the link below,

However when the code finishes a "file now available" message box appears
whenever the code attempted to open the file and it was read only.

Can anyone now tell me how to clear the event and prevent the message box
showing upon completion?

http://msdn.microsoft.com/newsgroups...xp=&sloc=en-us
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default clear the file now available msgbox

Post your code, someone will help.

Vaya con Dios,
Chuck, CABGx3



"Jive" wrote:

Bob Phillips very kindly solved my problem in the link below,

However when the code finishes a "file now available" message box appears
whenever the code attempted to open the file and it was read only.

Can anyone now tell me how to clear the event and prevent the message box
showing upon completion?

http://msdn.microsoft.com/newsgroups...xp=&sloc=en-us

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default clear the file now available msgbox

The code so far is as below;

Sub Update_To_DBase()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
DesignManager = ActiveWorkbook.Name
Do
Set wb = Workbooks.Open(Filename:="J:\ProSys\DataBase\Proje cts
Master.xls", Password:="*****")
If wb.ReadOnly Then Application.Wait Now + TimeSerial(0, 0, 1)
Loop Until Not wb.ReadOnly
ProjectsMaster = ActiveWorkbook.Name
Windows(DesignManager).Activate
For i = 1 To 1000
If Cells(i, 12) = True Then
ProjectID = Cells(i, 1).Value
DMCAD = Cells(i, 5).Value
DMType = Cells(i, 13).Value
DMTarget = Cells(i, 8).Value
DMNotes = Cells(i, 10).Value
Windows(ProjectsMaster).Activate
Range("A1").Activate
Cells.Find(What:=ProjectID, After:=ActiveCell, LookIn:=xlValues,
LookAt:= _
xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext,
MatchCase:= _
False, SearchFormat:=False).Activate
DBaseRow = ActiveCell.Row
Cells(DBaseRow, 5) = DMCAD
Cells(DBaseRow, 6) = DMType
Cells(DBaseRow, 8) = DMTarget
Cells(DBaseRow, 11) = DMNotes
Windows(DesignManager).Activate
End If
Next i
Windows(ProjectsMaster).Activate
ActiveWorkbook.Save
ActiveWorkbook.Close
Windows(DesignManager).Activate
Update_From_DBase
End Sub

"CLR" wrote:

Post your code, someone will help.

Vaya con Dios,
Chuck, CABGx3



"Jive" wrote:

Bob Phillips very kindly solved my problem in the link below,

However when the code finishes a "file now available" message box appears
whenever the code attempted to open the file and it was read only.

Can anyone now tell me how to clear the event and prevent the message box
showing upon completion?

http://msdn.microsoft.com/newsgroups...xp=&sloc=en-us

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
clear the clear the web page email attachment lines MCrider Excel Discussion (Misc queries) 0 November 11th 07 10:05 PM
How do I clear read-only status on a workbook file? Karin Excel Discussion (Misc queries) 1 March 2nd 07 04:55 PM
How to display remaining txt file which overflowed MsgBox display? EagleOne Excel Discussion (Misc queries) 1 November 2nd 06 01:10 PM
Pop up MsgBox upon opening Excel File certain_death Excel Discussion (Misc queries) 5 June 2nd 06 12:38 PM
Msgbox saying "Unable to read file" lashio Excel Discussion (Misc queries) 3 May 30th 05 07:59 PM


All times are GMT +1. The time now is 12:21 PM.

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

About Us

"It's about Microsoft Excel"