#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 88
Default Amending a formula

could you please advise on how I can ammend the following formula to enable
me to copy data from a different worksheet, eg. to copy data from Sheet1 to
sheet2 ensuring only the data values displayed are copied

Lastrow = Cells(Rows.Count, "CA").End(xlUp).Row
Range("CA10:CA" & Lastrow).Copy
Range("CH10").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

many thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Amending a formula

Lastrow = Worksheets("Sheet1").Cells(Rows.Count, "CA").End(xlUp).Row
Worksheets("Sheet1").Range("CA10:CA" & Lastrow).Copy
Worksheets("Sheet2").Range("CH10").PasteSpecial Paste:=xlPasteValues,
Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

Regards,
Stefi

€˛leerem€¯ ezt Ć*rta:

could you please advise on how I can ammend the following formula to enable
me to copy data from a different worksheet, eg. to copy data from Sheet1 to
sheet2 ensuring only the data values displayed are copied

Lastrow = Cells(Rows.Count, "CA").End(xlUp).Row
Range("CA10:CA" & Lastrow).Copy
Range("CH10").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

many thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Amending a formula

Hi

This will copy non-blank cells to sheet2:

Lastrow = Cells(Rows.Count, "CA").End(xlUp).Row
Range("CA10:CA" & Lastrow).Select
Selection.AutoFilter Field:=1, Criteria1:="<"
Selection.Copy Destination:=Sheets("Sheet2").Range("CH10")
Selection.AutoFilter

Best regards,
Per
"leerem" skrev i meddelelsen
...
could you please advise on how I can ammend the following formula to
enable
me to copy data from a different worksheet, eg. to copy data from Sheet1
to
sheet2 ensuring only the data values displayed are copied

Lastrow = Cells(Rows.Count, "CA").End(xlUp).Row
Range("CA10:CA" & Lastrow).Copy
Range("CH10").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

many thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Amending a formula

Another way if the ranges are the same size

with sheets("sheet1")
Lastrow = .Cells(Rows.Count, "CA").End(xlUp).Row
sheets("sheet2").Range("CH10:ch" & lastrow).value= _
.Range("CA10:CA" & Lastrow).value
end with

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"leerem" wrote in message
...
could you please advise on how I can ammend the following formula to
enable
me to copy data from a different worksheet, eg. to copy data from Sheet1
to
sheet2 ensuring only the data values displayed are copied

Lastrow = Cells(Rows.Count, "CA").End(xlUp).Row
Range("CA10:CA" & Lastrow).Copy
Range("CH10").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

many thanks


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
Amending 1 work sheet saving in all GeeWhizz Excel Worksheet Functions 2 April 23rd 08 06:37 AM
Amending date formats. Chiccada Excel Discussion (Misc queries) 4 June 26th 07 04:32 PM
Amending an existing function Paydog4 Excel Worksheet Functions 2 February 28th 06 03:52 AM
Help amending code Steve Excel Discussion (Misc queries) 4 August 17th 05 03:57 PM
Help with Amending this Code Please [email protected] Excel Worksheet Functions 4 February 1st 05 07:04 PM


All times are GMT +1. The time now is 09:42 AM.

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"