PC Review


Reply
Thread Tools Rate Thread

auto copy only selected cells

 
 
Keith Crooks
Guest
Posts: n/a
 
      25th Feb 2006
Hi Guys,

I have a spreadsheet that is basically a time sheet,
I have to put a customer name and number into
cell D24 to D59 and a quantity of hours into U24 to D59
monday covers D24 to D28
Tuesday covers D29 to D32
etc.
The same for the time

I then have to further down the sheet repeat this information in I93
to I20(ish)

my problem is that
A, I dont want to have to manually type in the same info twice
B, I may only do one job a day so I'm left with 3 blank cells before I start
tuesday, what i need to do is to have the info repeated from cell d24 into
I93 but I94 could need to contain data from one of the following cells d25,
d26, d27,d28 or d29, depends on how many jobs i do.


many thanks in advance, hope this is clear..

keith


 
Reply With Quote
 
 
 
 
dmexcel
Guest
Posts: n/a
 
      25th Feb 2006
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)
If Target.Column = 1 Then

Range("A1:G4").Copy Destination:=ActiveCell
End If
Cancel = True

End Sub

Paste this code in a worksheet module
For this example, when ever you are in column A and right click;
you will paste range A1:G4 to the active cell

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot copy selected cells Stevie Microsoft Excel Misc 1 19th Feb 2010 06:06 PM
auto populate selected cells robert morris Microsoft Excel Misc 6 18th Feb 2008 11:17 PM
Copy selected cells jeff.white@amcore.com Microsoft Excel Programming 3 23rd Mar 2007 02:35 PM
How can I copy the values of all selected cells to the same cells inanother Sheet hans.domian@de.man-mn.com Microsoft Excel Programming 2 8th Aug 2006 05:45 PM
auto copy formulas of a named range of cells when selected =?Utf-8?B?YnRr?= Microsoft Excel Misc 1 22nd Apr 2004 02:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:08 PM.