Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi.
I have a routine that opens all files linked to a specifc worbook, but if one of the files is already open with changes done I get a message. How can I check before trying to open? I have no idea what to do. Thanks My code is: Private Sub CommandButton1_Click() Dim thisFileName As String Dim alinks As Variant Dim i As Integer thisFileName = ActiveWorkbook.Name alinks = ActiveWorkbook.LinkSources(xlExcelLinks) If Not IsEmpty(alinks) Then For i = 1 To UBound(alinks) MsgBox "Open file" & alinks(i) & "?", vbOKCancel Workbooks.Open alinks(i) Next i End If Workbooks(thisFileName).Activate End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
make a check form, and then have info go to a check register | Excel Worksheet Functions | |||
Copy and move check box (check boxes) with new cell link? | Excel Worksheet Functions | |||
Increase size of a Forms Check Box (click on to enter check mark) | Excel Discussion (Misc queries) | |||
Check if Conditional Format is True or False / Check cell Color | Excel Worksheet Functions | |||
Enable check box in protected sheet + group check boxes | Excel Discussion (Misc queries) |