#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default inputbox ?

Declare a variable that represents that range. And then use that variable the
way you want.

Dim InputCell as range
dim ck as range

set ck = activesheet.cells(1,3)

Set inputcell = nothing
on error resume next
set inputcell = application.inputbox(Prompt:="dog?", _
title:="Animal", default:=ck.address, type:=8).cells(1)
on error goto 0

if inputcell is nothing then
'user hit cancel
else
msgbox inputcell.address & vblf & inputcell.value
end if




sunilpatel wrote:

i have the following
set ck=cells(1,3)
INPT$ = RTrim(Application.InputBox("dog" & "?", "animal", CK.Address, , , ,
, 8))

when a cell is clicked INPUT$=contents of clicked cell. This is what i want
but i also require the cell address clicked.

Please note Application.ScreenUpdating = False


--

Dave Peterson
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
InputBox Sandy Excel Programming 1 October 31st 08 07:21 PM
InputBox James8309 Excel Programming 2 June 17th 08 08:02 AM
inputbox brownti via OfficeKB.com Excel Discussion (Misc queries) 2 February 9th 07 02:37 PM
Inputbox and Application.InputBox Maria[_7_] Excel Programming 1 September 20th 04 11:36 AM
inputbox defj Excel Programming 4 November 26th 03 10:25 PM


All times are GMT +1. The time now is 08:28 AM.

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"