Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can anyone tell me why this isn't working Please?
Basically, the files are saved in a folder (CurrMonth), and within the current month's folder I want it to open the file that has the word "Pop" in it. Dim sFile Dim myCell As Range Dim mySht As Worksheet Dim myName As String Dim myArea As Range Dim myShtName As String Dim KeyCol As Integer Dim CurrMon As String Dim xlbook As Workbook 'Set the current month to look for files to use CurrMon = InputBox("What Month is this report for?") 'Open the current month's HRA file sFile = Workbooks.Open( _ " W:\comp\HRA Files\2007\CurrMon\*Pop*.xls") Set xlbook = Workbooks.Open(sFile) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open each file in a folder and closing it | Excel Discussion (Misc queries) | |||
Open the last file in a folder | Excel Programming | |||
open file from folder save in new folder | Excel Programming | |||
open OQY file from http:// folder | Excel Programming | |||
How can i open a folder or file | Excel Programming |