Be the first user to complete this post

  • 0
Add to List

VBA-Excel : 3D-Ranges - Working with Multiple WorkSheets At The Simultaneously

You can update the multiple worksheets at the same time. If you want to do the similar action on the same range on multiple sheets, all you need to do is use Array Function to specify multiple sheets name as array elements

Sub MultipleSheets()

    Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select


    Selection.Value = 7

    Selection.Interior.ColorIndex = 45

End Sub 

Also Read:

  1. Excel-VBA : Range - Lock/Unlock Specific Cells
  2. VBA-Excel: String Functions – LTrim()
  3. VBA-Excel: Date-Time Functions – Hour(), Minute(), Second()
  4. VBA Excel - Cells, Ranges and Offset: Refer Range by using A1 Notations
  5. VBA-Excel: String Functions – Replace()
  6. VBA-Excel: Date-Time Functions – Month(), Year() and MonthName()
  7. VBA-Excel : 3D-Ranges – FillAcrossSheets Method
  8. VBA-Excel: Date-Time Functions – CDate()