Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default macro recorder question

hi i have recorded a simple macro where i cut a column and paste it somewhere else. this is the code the recorder gives me
Columns("D:D").Cu
Columns("A:A").Selec
ActiveSheet.Past
Is there a more efficient way of writing this. I tried without the select and just paste but that doesn't work

Thk

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default macro recorder question

Hi
try
Columns("D:D").Cut
Columns("A:A").Paste


--
Regards
Frank Kabel
Frankfurt, Germany


kevin wrote:
hi i have recorded a simple macro where i cut a column and paste it
somewhere else. this is the code the recorder gives me.
Columns("D:D").Cut Columns("A:A").Select
ActiveSheet.Paste
Is there a more efficient way of writing this. I tried without the
select and just paste but that doesn't work.

Thks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default macro recorder question


Or the even more concise:

Columns("D").Cut Columns("A")

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"Frank Kabel" wrote in message
...
Hi
try
Columns("D:D").Cut
Columns("A:A").Paste


--
Regards
Frank Kabel
Frankfurt, Germany


kevin wrote:
hi i have recorded a simple macro where i cut a column and paste it
somewhere else. this is the code the recorder gives me.
Columns("D:D").Cut Columns("A:A").Select
ActiveSheet.Paste
Is there a more efficient way of writing this. I tried without the
select and just paste but that doesn't work.

Thks



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
macro recorder and formulas Dave F Excel Discussion (Misc queries) 2 March 19th 07 02:43 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
Macro recorder Fossil_Rock Excel Discussion (Misc queries) 1 July 30th 05 08:10 PM
Steps from Macro recorder for Pivot table will not run as a Macro Nancy[_5_] Excel Programming 0 April 2nd 04 10:33 PM


All times are GMT +1. The time now is 10:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"