+ Reply to Thread
Results 1 to 4 of 4

Making VBA run without clicking play

  1. #1
    Registered User
    Join Date
    03-06-2009
    Location
    Washington, DC
    MS-Off Ver
    Excel 2003
    Posts
    14

    Making VBA run without clicking play

    I have 4 worksheets that I want to aggregate into 1 worksheet. I inserted the following code into 2-A (the aggregated sheet). Sheets 1-A, 1-B, 1-C and 1-D feed directly into 2-A.

    The code is as follows:
    Please Login or Register  to view this content.
    I want Sheet 2-A to automatically update when I change a value or add a value to 1-A, 1-B, 1-C or 1-D. I inserted the following code into each sheet:

    Please Login or Register  to view this content.
    The code works fine when updating 1-A, but not for 1-B, 1-C, or 1-D. I've atached the spreadsheet for reference. Any suggestion how to make the sheet automatically update in 2-A?
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Making VBA run without clicking play

    That code that I wrote works only on one sheet. Which is the master sheet, what are you trying to do?

    Looking at your exaample I can't see what you want to happen
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-06-2009
    Location
    Washington, DC
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Making VBA run without clicking play

    The Master sheet is 2-A.

    2-A should be automatically updated whenever 1-A, 1-B, 1-C or 1-D are changed.

    I hope this helps.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Making VBA run without clicking play

    Th blocks don't match, you will need more complicated code. What is the point of duplicating the entries?

+ 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