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: 10
Default 2 problems with copying cells to sheets in same workbook

I have the following code to copy cells from one worksheet to another. I am
using this as I want the data to copy automatically when I hit either enter,
tab, or mouse click:

Private Sub Worksheet_Change(ByVal Target As Range)
'
Copies Pay Period from sheet 1 to cover
'
If Not Intersect(Target, Me.Range("R9")) Is Nothing Then
Me.Range("R9").copy Destination:=Sheets("Cover").Range("H6")
End If
End Sub

Problem 1 is the fonts on one worksheet are larger (16) so I can view the
data as I reduced the view percentage so I could get all of the sheet in the
window. I need to copy just the values/data from the cell and not the format.
I created a macro to see the code and I have the following but do not know
where to put it in the above code:

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

When I insert this code into the above code to copy only the data I get a
syntx error.
Could you tell me where I should place this code in the above code or if I
need something different what that code would be and where would I put it.

Problem 2 is I have several different cells that I need to copy on all work
sheets if I enter the above Private Sub code I get an error that there is a
conflict with the other routines that use the same Private Sub
Worksheet_Change(ByVal Target As Range) at least that is the part that is
highlighted in yellow.

How can I have this code to copy other cells from one worksheet to another
with other routines using the same code but different cell ranges.
--
BillD
 
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
Copying cells from one workbook to another with many sheets Memphis Excel Programming 2 February 10th 09 06:23 PM
Copying cells between sheets in a workbook Rick Excel Discussion (Misc queries) 2 November 21st 08 01:55 PM
HELP= Problems Copying WorkBook Sheets tommo_blade Excel Programming 10 July 12th 08 08:54 PM
Copying data from workbook/sheets to another workbook/sheet yukon_phil Excel Programming 0 July 26th 06 07:33 PM
Problems copying cells using offset and counta hlckom Excel Discussion (Misc queries) 4 January 30th 05 12:49 AM


All times are GMT +1. The time now is 02:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"