Consulting

Results 1 to 3 of 3

Thread: Similar change, multiple worksheets

  1. #1

    Similar change, multiple worksheets

    Hello All,

    This may have been asked several times, but I just need some clarification on where to start. I want to have a function that quickly adds an a similar item to several worksheets. How would I go about doing this?

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    Perhaps the .FillAcrossSheets method would be useful to you.

    [VBA]Dim mySheetNames As Variant

    mySheetNames = Array("Sheet2", "Sheet1", "Sheet3")
    With ThisWorkbook.Worksheets(mySheetNames)
    .Item(1).Range("A1").Value = "new": Rem note .Item(1) is Sheet2
    .FillAcrossSheets Range:=.Item(1).Range("A126"), Type:=xlFillWithContents
    End With[/VBA]

  3. #3
    hey thanks a lot! This is a good start, will definitely give this a try.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •