+ Reply to Thread
Results 1 to 4 of 4

Problem with macro/vba aimed at making cells on separate worksheets each update the other

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    Kansas, USA
    MS-Off Ver
    Mac Excel 2011
    Posts
    3

    Problem with macro/vba aimed at making cells on separate worksheets each update the other

    Hi -

    I'm new to the forum, and new to VBA. I'm a video editor by trade, but need to use excel for billing purposes.

    I've seen some answers to this question on this and other sites, but I think I'm struggling with the syntax here.

    I have a multi-sheet document where Sheet1 allows a customer to input information which populates Sheet4, which is an invoice. On Sheet1 B6 is where clients type in the project name, which populates C5 on Sheet4. Also I have a VBA that uses the data from B6 as part of a save-as event that names the file according to client, project, department, etc.

    Billing would like to be able to update C5 on the invoice (sheet4) and have it update the B6 cell on sheet1 rather than having to switch to the other worksheet to update that single field. So I would like Sheet1B6 and Sheet4C5 to essentially act like a single cell. Change either one of them and they update the other. Here's the macro I'm working with, but not managing to make work:

    (ON SHEET4)
    Please Login or Register  to view this content.
    (ON SHEET1)
    Please Login or Register  to view this content.

    It seems pretty simple, but I'm VERY new to VBA. I want to write it something like:
    If Sheet4 C5 changes, then make Sheet1 B6 match Sheet4 C5. If Sheet1 B6 changes, then make Sheet4 C5=Sheet1 B6

    I'm using Mac Excel 2011. Can someone help me out here? Point out my syntax error or throw some code my way? Would be greatly appreciated. Thanks!
    Last edited by sblake; 11-06-2012 at 12:07 PM. Reason: Left out code tags

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,608

    Re: Problem with macro/vba aimed at making cells on separate worksheets each update the ot

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    11-05-2012
    Location
    Kansas, USA
    MS-Off Ver
    Mac Excel 2011
    Posts
    3

    Re: Problem with macro/vba aimed at making cells on separate worksheets each update the ot

    Sorry, thanks for pointing that out. The code has been tagged.

  4. #4
    Registered User
    Join Date
    11-05-2012
    Location
    Kansas, USA
    MS-Off Ver
    Mac Excel 2011
    Posts
    3

    Re: Problem with macro/vba aimed at making cells on separate worksheets each update the ot

    Still trying variations, with no success. Plus the Worksheet_Change seems to cut me off after entering a single character into the cell. Then I have to mouse click and type the information into the formula bar.

    Here's my latest non-working attempt. Please help!

    On sheet 1
    Please Login or Register  to view this content.
    On sheet 4
    Please Login or Register  to view this content.
    Seems so simple, so close, yet so far away.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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