+ Reply to Thread
Results 1 to 10 of 10

Automatically update cells when one changes.

  1. #1
    Registered User
    Join Date
    09-01-2017
    Location
    New Hampshire
    MS-Off Ver
    2016
    Posts
    5

    Automatically update cells when one changes.

    I am trying to add to my sheet a way to automatically change the Cells (K14:K26) to equal Cells (R14:R26) when Cell K13 changes to a specific text which I have 34 different specification. Right now I have a drop down list in K13 that pulls from another sheet labeled Standard Specifications. When a selected item is picked in K13, (R14:R26) pulls the correct information, now I know I can simply do this in (K14:K26) but I wanted to make it possible for some one to input their own spec if the list did not include it.

    This is what I came up with... It does not work, although at some point I did get this idea to work but somehow messed it up and I haven't been able to get it. If this could be automatic and fluid that would be fantastic.

    Sub Worksheet_Specifications(ByVal Target As Excel.Range)
    If Range("K13").Value = "704.02A" Then
    Cell("K18") = Cell("R18")
    Cell("K19") = Cell("R19")
    Cell("K20") = Cell("R20")
    Cell("K21") = Cell("R21")
    Cell("K22") = Cell("R22")
    Cell("K23") = Cell("R23")
    or
    If Range("K13").Value = "703.04A" Then
    Cell("K18") = Cell("R18")
    Cell("K19") = Cell("R19")
    Cell("K20") = Cell("R20")
    Cell("K21") = Cell("R21")
    Cell("K22") = Cell("R22")
    Cell("K23") = Cell("R23")

    End If
    End Sub

    Thank you for your time in reading this thread.

  2. #2
    Registered User
    Join Date
    08-07-2017
    Location
    Lisbon
    MS-Off Ver
    2010
    Posts
    24

    Re: Automatically update cells when one changes.

    Just to make sure I understood correctly, you have a drop down list that you populate from another sheet.
    You want the user to be able to select any of the options or input something new if is not there.

    There is an easy solution for this without macros.

    When you create the list from data validation, just make sure you untick the box "show error alert after invalid data is entered" under the "Error Alert" tab.

    This will allow users to insert new items.

  3. #3
    Registered User
    Join Date
    09-01-2017
    Location
    New Hampshire
    MS-Off Ver
    2016
    Posts
    5

    Re: Automatically update cells when one changes.

    That, I already have finished I hope this picture of my sheet will give a better understanding.My sheet.png

  4. #4
    Registered User
    Join Date
    08-07-2017
    Location
    Lisbon
    MS-Off Ver
    2010
    Posts
    24

    Re: Automatically update cells when one changes.

    Is your user just going to introduce the information? Is it a lot of things?

    I would just create a command button on the top "Add new". And attach that to a userform.

    On a userform you can manipulate what a user is introducing more easily.

    This a little example of one I made, where I gave the user the option of selecting something predefined or introducing his own value:
    Capturar.JPG
    Last edited by RossioPS; 09-01-2017 at 10:43 AM.

  5. #5
    Registered User
    Join Date
    09-01-2017
    Location
    New Hampshire
    MS-Off Ver
    2016
    Posts
    5

    Re: Automatically update cells when one changes.

    No, nothing like that they will just input the information in the cells they need. This most likely will not happen very often but I wanted it to be there just in case.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,850

    Re: Automatically update cells when one changes.

    It would be easier to help and test possible solutions if we could work with your actual file. Could you attach a copy of your file with a detailed explanation of what you want to do referring to specific cells and worksheets?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  7. #7
    Registered User
    Join Date
    09-01-2017
    Location
    New Hampshire
    MS-Off Ver
    2016
    Posts
    5

    Re: Automatically update cells when one changes.

    Gradation Template 2018 Test.xlsm I have attached my file.

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,850

    Re: Automatically update cells when one changes.

    Replace your current Worksheet_Change macro with the following:
    Please Login or Register  to view this content.
    If the user wants to input a spec manually, all he has to do is click on K13 and enter it by over typing what may be in the cell already.

  9. #9
    Registered User
    Join Date
    09-01-2017
    Location
    New Hampshire
    MS-Off Ver
    2016
    Posts
    5

    Re: Automatically update cells when one changes.

    Well look at that it works!!!!! Thank you so very much. I'm working at bettering myself in VBA and this one was kicking me for awhile.

  10. #10
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,850

    Re: Automatically update cells when one changes.

    You are very welcome.

+ 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] Formula Cells do not Automatically update
    By Ian Bell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2015, 11:55 AM
  2. [SOLVED] Automatically update cells yearly
    By Maretha in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-29-2014, 12:45 AM
  3. Do not want cells to update automatically
    By James12 in forum Excel General
    Replies: 3
    Last Post: 07-07-2009, 06:05 PM
  4. update excel cells automatically
    By amawad98 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2008, 03:57 AM
  5. How do I automatically update the same information several cells?
    By Icandoit in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2006, 10:40 PM
  6. Automatically update cells
    By Maddoktor in forum Excel General
    Replies: 4
    Last Post: 12-08-2005, 06:00 PM
  7. Automatically update cells
    By Maddoktor in forum Excel General
    Replies: 1
    Last Post: 12-07-2005, 09:00 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