Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Copy & Paste


I have a table with the data in Cell B1, C2, D3 & D4, how can I move all
these data to Cell A1:A4. Could anyone please help.

Many Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Copy & Paste


Hi try this

Range("A1") = Range("B1")
Range("A2") = Range("C2")
Range("A3") = Range("D3")
Range("A4") = Range("D4")
--
Howard31


"AlanW" wrote:

I have a table with the data in Cell B1, C2, D3 & D4, how can I move all
these data to Cell A1:A4. Could anyone please help.

Many Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Copy & Paste


Hello Howard,

Thank you for help. But can I use a formula to do all of them, actually
there are a lot of data in other cells.

Thanks

"Howard31" 來函:

Hi try this

Range("A1") = Range("B1")
Range("A2") = Range("C2")
Range("A3") = Range("D3")
Range("A4") = Range("D4")
--
Howard31


"AlanW" wrote:

I have a table with the data in Cell B1, C2, D3 & D4, how can I move all
these data to Cell A1:A4. Could anyone please help.

Many Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Copy & Paste


I will need to know more about how your spreadsheet is set out and what you
want to do
--
Howard31


"AlanW" wrote:

Hello Howard,

Thank you for help. But can I use a formula to do all of them, actually
there are a lot of data in other cells.

Thanks

"Howard31" 來函:

Hi try this

Range("A1") = Range("B1")
Range("A2") = Range("C2")
Range("A3") = Range("D3")
Range("A4") = Range("D4")
--
Howard31


"AlanW" wrote:

I have a table with the data in Cell B1, C2, D3 & D4, how can I move all
these data to Cell A1:A4. Could anyone please help.

Many Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Copy & Paste


Hello Howard,

I copied data from internet and then paste to Excel as follows:-

A B C D E F

1 -- -- -- -- -- x
2 -- -- -- -- x
3 -- -- -- -- -- x
4 -- -- -- x
and so on

What I want to do is to copy or move x to a new column.

Please show me how to do it by using VB

Thanks

"Howard31" 來函:

I will need to know more about how your spreadsheet is set out and what you
want to do
--
Howard31


"AlanW" wrote:

Hello Howard,

Thank you for help. But can I use a formula to do all of them, actually
there are a lot of data in other cells.

Thanks

"Howard31" 來函:

Hi try this

Range("A1") = Range("B1")
Range("A2") = Range("C2")
Range("A3") = Range("D3")
Range("A4") = Range("D4")
--
Howard31


"AlanW" wrote:

I have a table with the data in Cell B1, C2, D3 & D4, how can I move all
these data to Cell A1:A4. Could anyone please help.

Many Thanks



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 199
Default Copy & Paste


I assume all of your data is constants and other cells are blank. select
your data sheet and run the macro below, then data will be copied into
column A on the sheet named "Sheet2". if Sheet2 doesn't exist, then this
would fail.

Sub Move2sheet2()
Dim r As Range
Dim i As Long
i = 1
For Each r In Cells.SpecialCells(xlCellTypeConstants)
Worksheets("Sheet2").Cells(i, "A") = r
i = i + 1
Next
End Sub

Keiji

AlanW wrote:
Hello Howard,

I copied data from internet and then paste to Excel as follows:-

A B C D E F

1 -- -- -- -- -- x
2 -- -- -- -- x
3 -- -- -- -- -- x
4 -- -- -- x
and so on

What I want to do is to copy or move x to a new column.

Please show me how to do it by using VB

Thanks

"Howard31" 來函:

I will need to know more about how your spreadsheet is set out and what you
want to do
--
Howard31


"AlanW" wrote:

Hello Howard,

Thank you for help. But can I use a formula to do all of them, actually
there are a lot of data in other cells.

Thanks

"Howard31" 來函:

Hi try this

Range("A1") = Range("B1")
Range("A2") = Range("C2")
Range("A3") = Range("D3")
Range("A4") = Range("D4")
--
Howard31


"AlanW" wrote:

I have a table with the data in Cell B1, C2, D3 & D4, how can I move all
these data to Cell A1:A4. Could anyone please help.

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
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Automating copy/paste/paste special when row references change Carl LaFong Excel Programming 4 October 8th 07 06:10 AM
help w/ generic copy & paste/paste special routine DavidH[_2_] Excel Programming 5 January 23rd 06 03:58 AM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM
Copy and Paste macro needs to paste to a changing cell reference loulou Excel Programming 0 February 24th 05 10:29 AM


All times are GMT +1. The time now is 10:41 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"