+ Reply to Thread
Results 1 to 4 of 4

set value in specific cells on multiple worksheets simultaneously

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    Silver Spring, MD
    MS-Off Ver
    Excel 2010
    Posts
    23

    set value in specific cells on multiple worksheets simultaneously

    Trying to change many at once with the following code which doesnt work. Can you assist ?

    Sub CLEAR()
    With Application
    .ScreenUpdating = False
    .Calculation = xlCalculationManual
    End With
    With Sheets("COM-ADOPT-INTERNAL STAFF", "COM-ADOPT-EXTERNAL STAFF", "COM-ASESMT-INTERNAL STAFF", "COM-ASESMT-EXTERNAL STAFF", "COM-IMPL-INTERNAL STAFF", "COM-IMPL-EXTERNAL STAFF")
    .Range("b56:b60,c65:c89").Value = 0
    End With
    With Application
    .ScreenUpdating = True
    .Calculation = xlCalculationAutomatic
    End With
    End Sub

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: set value in specific cells on multiple worksheets simultaneously

    First of all, can you please post code in CODE tags - makes it much easier to read and copy.

    Now, try this:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    11-08-2012
    Location
    Silver Spring, MD
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: set value in specific cells on multiple worksheets simultaneously

    Hi Olly,
    Sorry, I'm new and I dont know how to post in code tags but I will find out.
    Thanks for your help.
    The solution works perfectly on the first worksheet in the array but none of the others. Makin me crazy!
    I have double checked the tab labels and no spaces etc.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: set value in specific cells on multiple worksheets simultaneously

    Okay - can you attach your workbook, so we can have a look at it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Sorting multiple worksheets simultaneously
    By Bannor in forum Excel General
    Replies: 1
    Last Post: 05-22-2015, 06:21 AM
  2. Need Macro to Work on Specific WorkSheets Simultaneously
    By Brad.Morrison1 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-26-2013, 11:53 AM
  3. Help Populating Multiple Worksheets Simultaneously
    By brandnew22 in forum Excel General
    Replies: 4
    Last Post: 08-14-2013, 05:23 PM
  4. Pull Specific Cells from Multiple Worksheets into One, Repeatedly
    By BlackZao in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2012, 09:52 AM
  5. Replies: 3
    Last Post: 09-16-2007, 02:33 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1