Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Call a sheet name by reference to a Cell need help
Hello Everyone, I am looking for a solution to activate a worksheet by pickin worksheet name in a cell (ie : Cell A1 = 009, it is the worksheet nam from another file I need to activate) Is anybody can help me on this Thank you TP : -- tpety ----------------------------------------------------------------------- tpetyt's Profile: http://www.excelforum.com/member.php...fo&userid=1672 View this thread: http://www.excelforum.com/showthread.php?threadid=31932 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Call a sheet name by reference to a Cell need help
try this idea
009 c:\yourwb yourworksheet mypath = ActiveCell.Offset(0, 1) & "\" myfile = "[" & ActiveCell & ".xls]" mysheet = ActiveCell.Offset(0, 2) ..Offset(1, 0).Formula = "='" & mypath & myfile & mysheet & "'!$D$2" -- Don Guillett SalesAid Software "tpetyt" wrote in message ... Hello Everyone, I am looking for a solution to activate a worksheet by picking worksheet name in a cell (ie : Cell A1 = 009, it is the worksheet name from another file I need to activate) Is anybody can help me on this Thank you TP :) -- tpetyt ------------------------------------------------------------------------ tpetyt's Profile: http://www.excelforum.com/member.php...o&userid=16725 View this thread: http://www.excelforum.com/showthread...hreadid=319321 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Call a sheet name by reference to a Cell need help
Dim sName as String
sName = Activesheet.Range("A1").Text application.Goto Workbooks("Book2.xls") _ .Worksheets(sName).Range("B9"), True -- Regards, Tom Ogilvy "tpetyt" wrote in message ... Hello Everyone, I am looking for a solution to activate a worksheet by picking worksheet name in a cell (ie : Cell A1 = 009, it is the worksheet name from another file I need to activate) Is anybody can help me on this Thank you TP :) -- tpetyt ------------------------------------------------------------------------ tpetyt's Profile: http://www.excelforum.com/member.php...o&userid=16725 View this thread: http://www.excelforum.com/showthread...hreadid=319321 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Nesting a sheet name reference within a cell reference??? | Excel Discussion (Misc queries) | |||
Use reference text from one cell in another function call | Excel Worksheet Functions | |||
Changing sheet reference to cell reference | Excel Worksheet Functions | |||
how to call a reference to a cell in external file | Excel Worksheet Functions | |||
Reference Call | Excel Discussion (Misc queries) |