Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all, I am looking for a macro which should do something like this
(see below) when I click the button on sheet Sub openfile() if Mid(any file in "C:\Document\KK\" , 5 , 6).Name = Range("A1").Value Then Open that file Else MsgBox "File not Exist" End If End Sub in other words I want macro to check all excel files in Folder "C: \Document\KK\" and if any file "Mid(file name , 5 , 6)" equal to Range("A1"). Value then Open that file. For example if the file have name is "kks 556331" then if I put only "556331" in cell A1 and click the button then macro should open that file. I hope I was able to explain what i want. Please can any body help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
In Excel - Use Windows Explorer instead of File Open to open file | Excel Discussion (Misc queries) | |||
Open an Excel File from Selected Cell | Excel Programming | |||
open a non-office file using cell data from excel | Excel Discussion (Misc queries) | |||
can not open excel file, too many different cell formats | Excel Discussion (Misc queries) | |||
open excel file with cell highlighted | Excel Programming |