View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Stop Highlighting a Range

Unless you want to protect the worksheet and restrict the ability to select
to a single column or certain set of cells, there would be no way of
restricting the user to what can be selected. You just have to adjust to
what is selected and acertain the user's intent in the context of what you
asked for. You could certainly reject any selection that was greater than
one cell and put the inputbox back up with a chastising message.

--
Regards,
Tom Ogilvy


Chris Gorham wrote in message
...
Sorry Tom,

still doesn't do what I want....
in the Input Box you can still drag across a range...yes I
know that the active cell is still read in correctly, but
I'm trying to prevent the user from selecting a range when
he doesn't need to. My macro will read in the information
from the range automatically - all he has to do is "click"
on the row that contains it, not highlight the range where
the info is contained...

Thks...Chris

-----Original Message-----
Set activecell_position = Application.InputBox
(prompt:="Input desired active cell position",
title:="Active Cell Position",
Default:=ActiveCell.Address, Type:=8)

set ActiveCell_position = activeCell_Position(1,1)

--
Regards,
Tom Ogilvy

Chris Gorham wrote

in message
...
Hi,

I'm writing a macro that will improve on Excel's graph
plotting routine by automating some of the steps. As

part
of it I would like to have the user select a row by
clicking on it.

No problem - I can do that:

Set activecell_position = Application.InputBox
(prompt:="Input desired active cell position",
title:="Active Cell Position",
Default:=ActiveCell.Address, Type:=8)

but what I would like to do is to prevent a range of

cells
being highlighted accidentally.
ok, I know its still the active cell address that's read
in - but I want to prevent the highlighting of the range
in the first place.

Thks....Chris



.