ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Call a sheet name by reference to a Cell need help (https://www.excelbanter.com/excel-programming/317544-call-sheet-name-reference-cell-need-help.html)

tpetyt

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


Don Guillett[_4_]

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




Tom Ogilvy

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





All times are GMT +1. The time now is 03:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com