+ Reply to Thread
Results 1 to 4 of 4

how to fill related cells with numbers in all sheets

  1. #1
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Windows 10, MS Office 2013
    Posts
    375

    how to fill related cells with numbers in all sheets

    hello my friends,

    i need a code to fill these 10 numbers from C2 to L2: 15 32 35 40 47 53 54 62 69 74
    it will be applied to all sheets of that workbook except three sheets called "page2" , "wonmoney" , "woncolored"

    waiting your responses.
    thanks a lot.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to fill related cells with numbers in all sheets

    Something like this:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Windows 10, MS Office 2013
    Posts
    375

    Re: how to fill related cells with numbers in all sheets

    to update this code like this :
    copying C2:L2 cells from one sheet called "mainsheet" to all other sheets' C2:L2 cells in that workbook, except two sheets "wonmoney" and "woncolored"

    how we could write it?

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: how to fill related cells with numbers in all sheets

    Try this

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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] fill in numbers based on colored cells.
    By shart2k12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2014, 01:25 AM
  2. [SOLVED] Auto Fill from other columns and using IF with related to blank or Zero cells
    By Psionicrnd in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-05-2014, 05:45 AM
  3. How to fill a column of cells with consecutive numbers ?
    By M-Ray in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2013, 09:59 AM
  4. [SOLVED] Adding cells containing/related to certain text in different sheets
    By JackieChrist in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-27-2012, 11:49 AM
  5. [SOLVED] Fill column by comparing numbers in different cells
    By Jokerski in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-17-2012, 03:36 PM
  6. Copy and fill cells with existing numbers
    By Vestlink in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2012, 08:21 AM
  7. [SOLVED] random numbers to fill a certain amount cells in a row
    By bunjijumper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2010, 08:15 AM
  8. fill numbers from 2 cells in a row
    By d502 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2010, 07:01 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