Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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
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
Nesting a sheet name reference within a cell reference??? Broyston Excel Discussion (Misc queries) 9 July 8th 08 08:35 PM
Use reference text from one cell in another function call Randy Excel Worksheet Functions 3 March 10th 08 05:31 PM
Changing sheet reference to cell reference TeeJay Excel Worksheet Functions 3 October 19th 07 11:50 AM
how to call a reference to a cell in external file jose Excel Worksheet Functions 2 February 27th 07 09:59 AM
Reference Call cory Excel Discussion (Misc queries) 0 January 19th 07 08:22 PM


All times are GMT +1. The time now is 12:34 PM.

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

About Us

"It's about Microsoft Excel"