+ Reply to Thread
Results 1 to 4 of 4

How can I set values for a cell in every sheet of a workbook?

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2007
    Posts
    16

    How can I set values for a cell in every sheet of a workbook?

    Okay, after some great help from someone on here to the solution of my previous question, i now have another one.

    I have approximately 100 sheets in a workbook. I want to set the value of cell C5 to same exact thing for every sheet.

    Is it possible to do this without manually going into each sheet and pasting the code?

    Thanks!!
    Last edited by tripflex; 03-05-2009 at 06:55 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: How can I set values for a cell in every sheet of a workbook?

    Right click the sheet tabs > Select all sheets > Type in C5 then unselect the sheets either by selecting one or right click > Ungroup

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: How can I set values for a cell in every sheet of a workbook?

    Good evening tripflex
    Quote Originally Posted by tripflex View Post
    Is it possible to do this without manually going into each sheet and pasting the code?
    Sure is! Select your first sheet. Now hold down Shift and click on your last sheet.

    You have now entered Group Mode (see your status bar at the top), a potentially very destructive feature of Excel. Use with caution and always switch off when you're done.

    Go to C5 and type your text.

    To turn off, right click any sheet and select Ungroup Sheets.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Registered User
    Join Date
    03-05-2009
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: How can I set values for a cell in every sheet of a workbook?

    Awesome, thanks guys!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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