Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How can i shorten this macro?

Sub LFSG_HB()

Sheets("Raw Data").Select
With Sheets("Data ESG_HB")
.Range("F3:F22").Copy Range("BO3")
.Range("G3:G22").Copy Range("BO5")
.Range("H3:H22").Copy Range("BO7")
.Range("I3:I22").Copy Range("BO9")
.Range("J3:J22").Copy Range("BO11")
.Range("K3:K22").Copy Range("BO13")
.Range("L3:L22").Copy Range("BO15")
.Range("M3:M22").Copy Range("BO17")
.Range("N3:N22").Copy Range("BO19")
End With
Application.CutCopyMode = False
Sheets("COMMANDS").Select
End Sub


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"LMI" wrote in message
...
Sub LFSG_HB()
Sheets("Data ESG_HB").Select
Range("F3:F22").Select
Selection.Copy
Sheets("Raw Data").Select
Range("BO3").Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone,
SkipBlanks:=False _
, Transpose:=True
Sheets("Data ESG_HB").Select
Range("G3:G22").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Raw Data").Select
Range("BO5").Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone,
SkipBlanks:=False _
, Transpose:=True
Sheets("Data ESG_HB").Select
Range("H3:H22").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Raw Data").Select
Range("BO7").Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone,
SkipBlanks:=False _
, Transpose:=True
Sheets("Data ESG_HB").Select
Range("I3:I22").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Raw Data").Select
Range("BO9").Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone,
SkipBlanks:=False _
, Transpose:=True
Application.CutCopyMode = False
Sheets("Data ESG_HB").Select
Range("J3:J22").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Raw Data").Select
Range("BO11").Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone,
SkipBlanks:=False _
, Transpose:=True
Application.CutCopyMode = False
Sheets("Data ESG_HB").Select
Range("K3:K22").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Raw Data").Select
Range("BO13").Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone,
SkipBlanks:=False _
, Transpose:=True
Application.CutCopyMode = False
Sheets("Data ESG_HB").Select
Range("L3:L22").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Raw Data").Select
Range("BO15").Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone,
SkipBlanks:=False _
, Transpose:=True
Application.CutCopyMode = False
Sheets("Data ESG_HB").Select
Range("M3:M22").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Raw Data").Select
Range("BO17").Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone,
SkipBlanks:=False _
, Transpose:=True
Application.CutCopyMode = False
Sheets("Data ESG_HB").Select
Range("N3:N22").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Raw Data").Select
Range("BO19").Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone,
SkipBlanks:=False _
, Transpose:=True
Application.CutCopyMode = False
Sheets("COMMANDS").Select
End Sub



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 I shorten this any? Gregory Day Excel Worksheet Functions 1 April 10th 08 06:29 PM
Shorten a Macro mully Excel Discussion (Misc queries) 7 December 30th 05 05:52 PM
Macro to shorten a list JGB Excel Discussion (Misc queries) 2 August 5th 05 10:31 AM
Shorten A Name rocket0612 Excel Discussion (Misc queries) 3 June 14th 05 11:37 AM
Is there a way to shorten this? TyeJae[_7_] Excel Programming 4 June 15th 04 01:51 AM


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