LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default limiting column selection

I have this coded on a worksheet:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Cancel = True ' prevent double-click from causing Edit Mode in cell
Application.Run "CopyProcedure"
End Sub

It allows me to double-click a cell in column A, selects and copies all data
on that row up to column E, and pastes the data into another worksheet.

Unforutnately, if you double-click anywhere else, like a cell in columns B
or C, it does the same thing and selects the next 4 cells over in that row
and copies and pastes it too. How can I limit the code to only execute if
the cell that is double-clicked is in column A?
 
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
Pivot Table limiting user selection PJS Excel Discussion (Misc queries) 2 April 29th 10 06:33 PM
Limiting selection in a cell AND linking that selection to a list Lisa Excel Discussion (Misc queries) 1 July 28th 09 05:00 PM
Limiting a worksheet's selection range. Ken Johnson Excel Programming 6 April 19th 07 11:59 PM
Limiting a macro to one column Steve Excel Discussion (Misc queries) 3 February 21st 05 11:12 PM
Limiting the # of pages for Repeat Column Labels LarryF Excel Discussion (Misc queries) 1 November 27th 04 12:21 AM


All times are GMT +1. The time now is 04:01 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"