You reference a sheet codename like this Sheet(1) however, you cannot
use a sheet codename when you reference a Sheet that is in a different
Workbook to the one that the code is in.
Michelle;723812 Wrote:
I want to refer
to sheets' codenames that are set up in the active book from
another book (or an add-in)
e.g. MsgBox ActiveWorkbook.SheetCodeNameHere.Cells(6, 2).Value
Can I do that?
M
--
Simon Lloyd
Regards,
Simon Lloyd
'Microsoft Office Help' (
http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile:
http://www.thecodecage.com/forumz/member.php?u=1
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=202735
http://www.thecodecage.com/forumz