View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
joel[_462_] joel[_462_] is offline
external usenet poster
 
Posts: 1
Default How to refer to a workbook?


You use the property Parent

The parent of range on a worksheet is the sheet.
The parent of a sheet is the workbook

Set Src = Application.InputBox("WHAT?", , , , , , , 8)
SheetName = Src.parent.name
BookName = Src.parent.parent.name


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=166368

Microsoft Office Help