Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Select one cell insteade of a range

Is it possible with VBA the make a sheet select only one cell at a
time when you drag the cursor around the sheet instead of the normal
function of selecting a range?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Select one cell insteade of a range

You can do it with VBA code. Right click the tab at the bottom of the
worksheet you want to have this functionality, select View Code from the
popup menu that appears and copy/paste this code into the code window that
opened up...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Target(1).Select
End Sub

Now, go back to that worksheet and try to select multiple cells.

--
Rick (MVP - Excel)


"Marge" wrote in message
...
Is it possible with VBA the make a sheet select only one cell at a
time when you drag the cursor around the sheet instead of the normal
function of selecting a range?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Select one cell insteade of a range

Thanks Rick,

That does do what I asked :o)

not quite what I was hoping for though, not sure if it would be
possible, instead of still selecting the upper left cell I want each
cell under the cursor as it moves to be selected individually.

On 17 Dec, 16:53, "Rick Rothstein"
wrote:
You can do it with VBA code. Right click the tab at the bottom of the
worksheet you want to have this functionality, select View Code from the
popup menu that appears and copy/paste this code into the code window that
opened up...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
* Target(1).Select
End Sub

Now, go back to that worksheet and try to select multiple cells.

--
Rick (MVP - Excel)

"Marge" wrote in message

...



Is it possible with VBA the make a sheet select only one cell at a
time when you drag the cursor around the sheet instead of the normal
function of selecting a range?- Hide quoted text -


- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Select one cell insteade of a range

Not sure that this is what you mean, but you can select multiple
discontiguous cells (and/or groups of cells) if you hold down <Ctrl while
you move about the sheet selecting.

--
Time is just the thing that keeps everything from happening all at once


"Marge" wrote:

Is it possible with VBA the make a sheet select only one cell at a
time when you drag the cursor around the sheet instead of the normal
function of selecting a range?
.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Select one cell insteade of a range

Thanks for the reply, but no,

when I press the mouse button and move in a diagonal line I want to
select each individual cell momentarily in that diagonal line not
stretch to a group(larger square)

If there was a way to make excel just select the cell under the cursor
as you move the mouse that would do just what I need.



On 18 Dec, 04:41, Neptune Dinosaur wrote:
Not sure that this is what you mean, but you can select multiple
discontiguous cells (and/or groups of cells) if you hold down <Ctrl while
you move about the sheet selecting.

--
Time is just the thing that keeps everything from happening all at once



"Marge" wrote:
Is it possible with VBA the make a sheet select only one cell at a
time when you drag the cursor around the sheet instead of the normal
function of selecting a range?
.- Hide quoted text -


- Show quoted text -


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
Better way to select Cell in Range Hal Excel Programming 10 November 14th 09 12:42 PM
macro to select range from active cell range name string aelbob Excel Programming 2 July 14th 08 09:19 PM
HELP W/ VBA: SELECT RANGE, ALLCAPS, CELL COLOR, RETURN TO BLANK CELL/PATTERN CELL [email protected] Excel Programming 5 June 28th 08 07:49 PM
NEED VBA TO SELECT A CELL; NOTE THE CELL VALUE;COPYADJ CELL;FIND CELL VALUE IN A RANGE AND SO ON CAPTGNVR Excel Programming 2 July 8th 07 04:18 PM
select last cell in used range Tony P Excel Programming 1 January 7th 04 06:41 AM


All times are GMT +1. The time now is 07:57 PM.

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"