+ Reply to Thread
Results 1 to 6 of 6

vba to reflect change in all sheets

  1. #1
    Registered User
    Join Date
    06-18-2017
    Location
    INDIA
    MS-Off Ver
    MS office 2010
    Posts
    2

    vba to reflect change in all sheets

    Hello all,

    I am new forum and VBA too. I have an excel file with 40 sheets. What I am looking for is Whatever I will write in cells A4 of sheet1. It should reflect in all remaining sheets of the workbook in cells A4, C11 and F9.


    Looking for help.


    Thanks

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: vba to reflect change in all sheets

    Hello and welcome to the forum
    Try this code in the module of sheet1
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: vba to reflect change in all sheets

    Hi dcheulkar, welcome to the forum. Try this:
    Please Login or Register  to view this content.
    In Excel, right-click on the Sheet 1 Tab and select View code. Paste the above code in the window that appears. Then press ALT+F11 to return to Excel.

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 06-18-2017 at 04:27 AM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: vba to reflect change in all sheets

    Hi,

    Another option

    Please Login or Register  to view this content.
    Any change made in ANY sheet will be reflected in all.

    If you wanted to exclude a particular sheet from the group then add a condition. e.g.

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    06-18-2017
    Location
    INDIA
    MS-Off Ver
    MS office 2010
    Posts
    2

    Re: vba to reflect change in all sheets

    Thanks you very much for your reply.

    How does this code works. Actually, I have a small macro written for some other process in my report. I want to include your code in my exisiting macro. Will it work.
    Can you please guide me.

    Thanks

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: vba to reflect change in all sheets

    To which code are you referring? Posts #2,#3 are essentially identical event procedures which reside in the worksheet module and respond automatically to changes in A4. Post #4 code is incomplete- Richard was demonstrating a different way to access the worksheets, but code must be added to actually update the cells.
    Perhaps you could post YOUR macro so we can determine how to proceed.

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 06-19-2017 at 01:18 AM.

+ 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. Replies: 2
    Last Post: 02-20-2017, 07:33 AM
  2. Change Bar Sizes to Reflect Values
    By duescoses in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 11-17-2014, 08:29 AM
  3. [SOLVED] Sum function to reflect results across sheets
    By vaish.srini in forum Excel General
    Replies: 17
    Last Post: 08-05-2014, 06:18 PM
  4. Getting information to reflect across multiple sheets
    By espnteams in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2014, 12:44 PM
  5. Insert/remove rows on sheet one and have it reflect on all sheets
    By phryed in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2013, 03:46 PM
  6. macro add new row to reflect the change in master sheet
    By kbaruin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2012, 05:31 AM
  7. [SOLVED] How do I auto change text colour in excel to reflect the value ent
    By Ashish Mathur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM

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