Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Copying too much.

The following code should copy Columns C and D from one
workbook to another one. However, it is copying columns
A, B, C, and D.

Windows("Work Orders - Master.xls").Activate
Sheets("Drum Prep").Select
Columns("C:D").Select
Selection.Copy

Windows("Form.xls").Activate
Sheets("Drum Prep Comparison").Select
Columns("D:D").Select
ActiveSheet.Paste


Any ideas on how to fix this quirk?

Thanks

SS
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Copying too much.

For whatever it's worth, I could not duplicate your problem. I modified the
code as shown below. In worksheet Test1, I put some information in Columns
A, B, C, and D
The procedure seemed to correctly copy the information from columns C and D
to columns D and E in test2. The information in Columns A and B of test1
was not copied.
It was with Office 2003 that I tried it.
Ron Dahl

Windows("Test1.xls").Activate
Sheets("Sheet1").Select
Columns("C:D").Select
Selection.Copy

Windows("Test2.xls").Activate
Sheets("Sheet2").Select
Columns("D:D").Select
ActiveSheet.Paste




"SS" wrote in message
...
The following code should copy Columns C and D from one
workbook to another one. However, it is copying columns
A, B, C, and D.

Windows("Work Orders - Master.xls").Activate
Sheets("Drum Prep").Select
Columns("C:D").Select
Selection.Copy

Windows("Form.xls").Activate
Sheets("Drum Prep Comparison").Select
Columns("D:D").Select
ActiveSheet.Paste


Any ideas on how to fix this quirk?

Thanks

SS



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
copying row nishkrish Excel Discussion (Misc queries) 2 October 23rd 09 08:42 AM
copying a row james b Excel Worksheet Functions 6 June 17th 08 09:41 PM
copying the Hyperlink function result without copying the actual formula mcheng Excel Worksheet Functions 2 June 9th 07 02:43 AM
Copying data down to next dirty cell, then copying that data slarson Excel Programming 0 September 15th 03 09:19 PM
Help with copying please. Don Guillett[_4_] Excel Programming 0 July 12th 03 02:55 PM


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