PC Review


Reply
Thread Tools Rate Thread

Column re-arrange in a worksheet (Macro help)

 
 
Sinner
Guest
Posts: n/a
 
      3rd May 2008
Hi,

I have some data in sheet3.
In sheet4, I want to do the following:

Example:
- columnA of sheet3 values in columnH sheet4
- columnB of sheet3 values in columnK sheet4
and so on. I have almost 21 columns to re-arrange to get the report
that I want.

I have done that with simple = cell in sheet4 for sheet3 but since
data range in sheet3 varies so I have to update sheet4 cells.

Also the calculation time slow.

Some code in back ground can be useful.

Any help is appreciate.
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      3rd May 2008

For the whole col
sub copywholecols()
with sheets("sheet4")
.columns("h").value=sheets("sheet3").columns("a").value
.columns("k").value=sheets("sheet3").columns("b").value
end with
end sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Sinner" <(E-Mail Removed)> wrote in message
news:ed4a65dd-67a1-41cb-9575-(E-Mail Removed)...
> Hi,
>
> I have some data in sheet3.
> In sheet4, I want to do the following:
>
> Example:
> - columnA of sheet3 values in columnH sheet4
> - columnB of sheet3 values in columnK sheet4
> and so on. I have almost 21 columns to re-arrange to get the report
> that I want.
>
> I have done that with simple = cell in sheet4 for sheet3 but since
> data range in sheet3 varies so I have to update sheet4 cells.
>
> Also the calculation time slow.
>
> Some code in back ground can be useful.
>
> Any help is appreciate.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Macro to set column widths in a worksheet JLGWhiz Microsoft Excel Programming 0 14th Jul 2009 10:01 PM
Re: Macro to set column widths in a worksheet JLGWhiz Microsoft Excel Programming 0 14th Jul 2009 09:58 PM
A basic Macro: going to a particular Worksheet and then selecting thefirst blank cell in column A Mike C Microsoft Excel Programming 2 25th Feb 2008 01:30 AM
Delete a Column when in a Macro-Worksheet Event? =?Utf-8?B?amVhbm5pZSB2?= Microsoft Excel Worksheet Functions 2 19th Jul 2007 01:58 AM
How to create a macro to copy data from a column to a row in another worksheet? NewAtExcel Microsoft Excel Programming 0 1st Jan 2004 12:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:43 AM.