Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() If so, how? If not, any suggestions? Many thanks, Adria -- Kobayash ----------------------------------------------------------------------- Kobayashi's Profile: http://www.excelforum.com/member.php...info&userid=87 View this thread: http://www.excelforum.com/showthread.php?threadid=27331 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Option Explicit
Sub testme() Dim myRng As Range Dim wkbk As Workbook On Error Resume Next Set myRng = Application.InputBox(prompt:="Click on a cell", Type:=8) On Error GoTo 0 If myRng Is Nothing Then Exit Sub End If MsgBox myRng.Parent.Name 'worksheet MsgBox myRng.Parent.Parent.Name 'workbook 'so... Set wkbk = myRng.Parent.Parent '.... End Sub Kobayashi wrote: If so, how? If not, any suggestions? Many thanks, Adrian -- Kobayashi ------------------------------------------------------------------------ Kobayashi's Profile: http://www.excelforum.com/member.php...nfo&userid=871 View this thread: http://www.excelforum.com/showthread...hreadid=273314 -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think it would be better to explain what you are trying to achieve, we
might be able to help then. -- HTH RP "Kobayashi" wrote in message ... If so, how? If not, any suggestions? Many thanks, Adrian -- Kobayashi ------------------------------------------------------------------------ Kobayashi's Profile: http://www.excelforum.com/member.php...nfo&userid=871 View this thread: http://www.excelforum.com/showthread...hreadid=273314 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can not set WorkBook variable | Excel Discussion (Misc queries) | |||
Double Clicking on link w/i workbook does't bring me to souce. | Excel Worksheet Functions | |||
Prevent Excel closing all workbook instances when clicking on "X" | Excel Discussion (Misc queries) | |||
Workbook name as variable to another workbook | Excel Discussion (Misc queries) | |||
workbook as variable | Excel Programming |