Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Amending 1 work sheet saving in all | Excel Worksheet Functions | |||
Amending date formats. | Excel Discussion (Misc queries) | |||
Amending an existing function | Excel Worksheet Functions | |||
Help amending code | Excel Discussion (Misc queries) | |||
Help with Amending this Code Please | Excel Worksheet Functions |