Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Move data worksheet to worksheet
Hello,
I have a worksheet called (Template). I want to move the values in column H to a new worksheet called (Output) begining from A1 downwards. The results in column H can be spaced out, for example; h5 - $150 h6 - $125 h7- h8- $75 I would like them to have the space removed when transfered to Output worksheet. Also, everytime the code is run I would like the results from Template to Append to the last row of data in the Output worksheet. Hope this makes sense. Thanks in advance for your time. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Move data worksheet to worksheet
Something like this perhaps: HTH Otto
Sub Macro1() Dim rColH As Range Dim Dest As Range With Sheets("Output") Set Dest = .Range("A" & Rows.Count).End(xlUp).Offset(1) Set rColH = Range("H5", Range("H" & Rows.Count).End(xlUp)) rColH.SpecialCells(xlCellTypeConstants, 23).Copy Dest End With End Sub "ap19" wrote in message ... Hello, I have a worksheet called (Template). I want to move the values in column H to a new worksheet called (Output) begining from A1 downwards. The results in column H can be spaced out, for example; h5 - $150 h6 - $125 h7- h8- $75 I would like them to have the space removed when transfered to Output worksheet. Also, everytime the code is run I would like the results from Template to Append to the last row of data in the Output worksheet. Hope this makes sense. Thanks in advance for your time. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Move data worksheet to worksheet
Otto
This works great. One other question if I may....the code picks up all the values in H, however under the last value , the cell contains a Sum calculation,.Can the code be modified to inlcude a calculation. Thanks soo much "Otto Moehrbach" wrote: Something like this perhaps: HTH Otto Sub Macro1() Dim rColH As Range Dim Dest As Range With Sheets("Output") Set Dest = .Range("A" & Rows.Count).End(xlUp).Offset(1) Set rColH = Range("H5", Range("H" & Rows.Count).End(xlUp)) rColH.SpecialCells(xlCellTypeConstants, 23).Copy Dest End With End Sub "ap19" wrote in message ... Hello, I have a worksheet called (Template). I want to move the values in column H to a new worksheet called (Output) begining from A1 downwards. The results in column H can be spaced out, for example; h5 - $150 h6 - $125 h7- h8- $75 I would like them to have the space removed when transfered to Output worksheet. Also, everytime the code is run I would like the results from Template to Append to the last row of data in the Output worksheet. Hope this makes sense. Thanks in advance for your time. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Move row of data from one worksheet to another | Excel Programming | |||
Move data from one worksheet to another. | Excel Worksheet Functions | |||
Move data from a worksheet | Excel Programming | |||
How do I move data from one worksheet to another? | Excel Discussion (Misc queries) | |||
How to move data on worksheet | Excel Discussion (Misc queries) |