Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Met,
As the lead comments in the sub indicate, you still need to use the two support functions in my other post. Here they are again: Function bBookIsOpen(wbkName) As Boolean ' Checks if a specified workbook is open. ' ' Arguments: wbkName The name of the workbook ' ' Returns: True if the workbook is open Const sSource As String = "bBookIsOpen()" Dim x As Workbook On Error Resume Next Set x = Workbooks(wbkName) bBookIsOpen = (Err = 0) End Function Function bFileExists(fileName As String) As Boolean ' Checks if a file exists in the specified folder ' ' Arguments: fileName The fullname of the file ' ' Returns: TRUE if the file exists Const sSource As String = "bFileExists()" On Error Resume Next bFileExists = (Dir$(fileName) < "") End Function Regards, Garry |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I copy spreadsheet data as shown to another spreadsheet? | Excel Discussion (Misc queries) | |||
In Excel I want to copy text from spreadsheet to spreadsheet | Excel Worksheet Functions | |||
Unable to copy another spreadsheet to the current spreadsheet with | Excel Programming | |||
using vba copy data from .csv file into an excel spreadsheet | Excel Programming | |||
How to open another Excel spreadsheet to copy data into current spreadsheet ? | Excel Programming |