Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Is there a way to have a Macro open a file(s) based on a cell. For example if you had a file name in cell A1 and Cell A2, could excel open those files by running a Macro? Any help would be greatly appreciated! -- STEVEB ------------------------------------------------------------------------ STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872 View this thread: http://www.excelforum.com/showthread...hreadid=396974 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Steve,
Try, Sub Tester() Dim sStr As String sStr = Range("A1").Value sStr2 = Range("A2").Value Workbooks.Open sStr Workbooks.Open sStr2 End Sub If the workbooks are not stored in the default folder, then A1 and A2 will need to include the full paths to rthe workbooks. --- Regards, Norman "STEVEB" wrote in message ... Is there a way to have a Macro open a file(s) based on a cell. For example if you had a file name in cell A1 and Cell A2, could excel open those files by running a Macro? Any help would be greatly appreciated! -- STEVEB ------------------------------------------------------------------------ STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872 View this thread: http://www.excelforum.com/showthread...hreadid=396974 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Norman, Thanks!!! Everything worked great, I really appreciate it! -- STEVEB ------------------------------------------------------------------------ STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872 View this thread: http://www.excelforum.com/showthread...hreadid=396974 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
opening a file in Excel starts application but dose not open file | Excel Discussion (Misc queries) | |||
Opening file in Excel 2003 opens multipule instances of same file | Excel Discussion (Misc queries) | |||
File:1 and File:2 -- Double Files when Opening One File | Excel Discussion (Misc queries) | |||
opening an excel file opens a duplicate file of the same file | Excel Discussion (Misc queries) |