Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Using the name in a cell to open/activate a workbook



HI-

How do I take the name of a workbook which resides in a cell in my current
open workbook and open or activate that workbook value in the cell?

I did a superficial recorded macro copying the label and pasting it into
Open workbook window. However, what I really want to do is reactivate the
other workbook. Problem is, I only can derive the name of that workbook from
that cell in the current workbook.

The reason for this confusing scenario is that we will be sending out an
Excel file (we'll call it the user file) which will need to be updated from
time to time. We will not know the name or the path of that file, but we
have a macro in that Excel file to paste the name and path into the workbook
that is called the Update file. Now we need the update file to launch it's
own macro to do the necessary updating of the user file.

To repeat my question: Can I take the name in the cell in the Update file
and use it to reactivate the user file that is already open.




Sub tempfindotherworkbook()
'


'
Range("D39:E39").Select
ActiveCell.FormulaR1C1 = "userfileNewVersion.xls"


Selection.Copy

Workbooks.Open filename:= _
"userfileNewVersion.xls" THE NAME OF THIS WORKBOOK IS VARIABLE
End Sub
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't seem to activate an open workbook dantee Excel Discussion (Misc queries) 1 July 11th 08 02:48 AM
WorkBook Open & Sheet Activate jimmy[_5_] Excel Programming 1 May 8th 07 06:26 PM
how to Activate the previous Open, workbook..? acegap Excel Programming 3 June 25th 06 04:14 PM
how to open a Workbook and activate a specific sheet Bob Phillips[_6_] Excel Programming 0 August 17th 04 09:24 PM
open and activate workbook? Dave Peterson[_3_] Excel Programming 0 June 30th 04 03:07 AM


All times are GMT +1. The time now is 10:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"