Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default More efficient code advice needed

Hi - I've been writing code in what I'm sure is an inefficient way -- can
someone just tell me what the recommended way would be to re-write the
following code? Thanks!

Sheets("Data for Graphs").Select
Columns("D:H").Select
Selection.Copy

Sheets("Copy of Data for Graphs").Select
Columns("J:N").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default More efficient code advice needed

Worksheets("Data for Graphs").Columns("D:H").Copy

Worksheets("Copy of Data for Graphs").Select
Range("J1").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks
_
:=False, Transpose:=False
Application.CutCopyMode = False


--
HTH

Bob Phillips

"Linking to specific cells in pivot table"
crosoft.com wrote in
message ...
Hi - I've been writing code in what I'm sure is an inefficient way -- can
someone just tell me what the recommended way would be to re-write the
following code? Thanks!

Sheets("Data for Graphs").Select
Columns("D:H").Select
Selection.Copy

Sheets("Copy of Data for Graphs").Select
Columns("J:N").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks

_
:=False, Transpose:=False



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default More efficient code advice needed

Thanks Bob!!

"Bob Phillips" wrote:

Worksheets("Data for Graphs").Columns("D:H").Copy

Worksheets("Copy of Data for Graphs").Select
Range("J1").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks
_
:=False, Transpose:=False
Application.CutCopyMode = False


--
HTH

Bob Phillips

"Linking to specific cells in pivot table"
crosoft.com wrote in
message ...
Hi - I've been writing code in what I'm sure is an inefficient way -- can
someone just tell me what the recommended way would be to re-write the
following code? Thanks!

Sheets("Data for Graphs").Select
Columns("D:H").Select
Selection.Copy

Sheets("Copy of Data for Graphs").Select
Columns("J:N").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks

_
:=False, Transpose:=False




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
Advice needed Stefi Excel Discussion (Misc queries) 0 October 3rd 08 09:25 AM
Advice needed Stefi Charts and Charting in Excel 0 October 3rd 08 09:25 AM
advice needed Duncan Excel Worksheet Functions 2 January 27th 05 10:07 PM
Advice needed... Duncan Excel Discussion (Misc queries) 3 January 27th 05 08:10 PM
advice needed Duncan[_4_] Excel Programming 1 January 27th 05 08:02 PM


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