L
Legacy 93538
Guest
Hi
I needs some help with arrays. I never use arrays and i dont understand them. I need to turn the following three pieces of code into three arrays but i have no idea how:
Can anyone please help me?
Thanks
Jessicaseymour
I needs some help with arrays. I never use arrays and i dont understand them. I need to turn the following three pieces of code into three arrays but i have no idea how:
Code:
wbNew.Sheets("MTH").Range("B2:FF4000").Copy
wbGCT.Sheets("MTH").Range("B2:FF4000").PasteSpecial
wbNew.Sheets("MTHPrevious").Range("B2:FF4000").Copy
wbGCT.Sheets("MTHPrevious").Range("B2:FF4000").PasteSpecial
wbNew.Sheets("YTD").Range("B2:FF3000").Copy
wbGCT.Sheets("YTD").Range("B2:FF3000").PasteSpecial
wbNew.Sheets("YTDPrevious").Range("B2:FF3000").Copy
wbGCT.Sheets("YTDPrevious").Range("B2:FF3000").PasteSpecial
wbNew.Sheets("R12").Range("B2:FF3000").Copy
wbGCT.Sheets("R12").Range("B2:FF3000").PasteSpecial
wbNew.Sheets("R12Previous").Range("B2:FF3000").Copy
wbGCT.Sheets("R12Previous").Range("B2:FF3000").PasteSpecial
Code:
Sheets("Graphing").Select: Range("A1").Select: Sheets("Settings").Select: Range("A1").Select
Sheets("R12Previous").Select: Range("A1").Select: Sheets("R12").Select: Range("A1").Select
Sheets("YTDPrevious").Select: Range("A1").Select: Sheets("YTD").Select: Range("A1").Select
Sheets("MTHPrevious").Select: Range("A1").Select: Sheets("MTH").Select: Range("A1").Select
Sheets("Charts").Select: Range("A1").Select: Sheets("Home").Select: Range("A1").Select
Code:
Sheets("Graphing").Visible = xlSheetVeryHidden
Sheets("Settings").Visible = xlSheetVeryHidden
Sheets("R12Previous").Visible = xlSheetVeryHidden
Sheets("R12").Visible = xlSheetVeryHidden
Sheets("YTDPrevious").Visible = xlSheetVeryHidden
Sheets("YTD").Visible = xlSheetVeryHidden
Sheets("MTHPrevious").Visible = xlSheetVeryHidden
Sheets("MTH").Visible = xlSheetVeryHidden
Can anyone please help me?
Thanks
Jessicaseymour