+ Reply to Thread
Results 1 to 4 of 4

VBA to update all changes to same item?

  1. #1
    Forum Contributor
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2013
    Posts
    131

    VBA to update all changes to same item?

    Hey folks,

    I thought this would be easy, and maybe it is, but for the life of me I can't figure out how to approach this. VBA might not even be needed, but I'm totally open to incorporating it into my existing code.

    The context is this:
    I have a workbook with multiple sheets. The same information can be present on multiple sheets because it's a classroom tracker for the actual classes. So the title "Class Name #1" could show up on a few sheets.

    There are about 900 classes in total. My issue is, the class names change pretty regularly, and new classes with new names are added daily. Currently, if a class name changes, I have to go find it in each tab, then replace the old name with the new one. It's a pain, and if I forget to do the update on a sheet it breaks everything.

    So my question is: What's the easiest way to make it so that when I update a class name in one location, it updates everywhere? I thought of doing a Data Validation list, however that doesn't update old entries on other sheets (in otherwords, if I create a Master List tab with all the class names on it and have that be my data validation list, it works except for areas where the old name was already present and I'd have to go re-select those to update).

    Again, I feel like this is probably easy but after my data validation idea failed, I've suddenly lost the ability to problem solve...

    Help? Please?

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: VBA to update all changes to same item?

    This as an example...
    You might have some sheets you want to ignore...Just amend code to accommodate
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2013
    Posts
    131

    Re: VBA to update all changes to same item?

    Quote Originally Posted by sintek View Post
    This as an example...
    You might have some sheets you want to ignore...Just amend code to accommodate
    Please Login or Register  to view this content.
    Oh man, this works brilliantly!

    Silly question, but how would I modify this code so that on a button click it'll prompt me to type in the Old Name (Class Name #1) and the new name (Class Name #2)? This will be user facing, so setting it up so they can change on a button click will prevent confusion for editing code in the code viewer.

    I know how to do a VB Yes/No box, but Google is suggesting I use a User Form? But that feels excessive (but maybe necessary!). Thoughts?

    Thanks again, rep added regardless!

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: VBA to update all changes to same item?

    I like User Forms...They can be manipulated formatted designed etc...Input msgBox are limited...
    Attached Files Attached Files

+ 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] Update ComboBox after editing an item
    By Menohavename in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2020, 05:19 AM
  2. [SOLVED] Update Cell Value when List item is Changed
    By JaredAndrewDaniel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2015, 08:47 AM
  3. [SOLVED] Macro to update a list using item name lookup
    By jayherring86 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2015, 03:05 PM
  4. [SOLVED] update listbox item only updates first item
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2014, 04:16 PM
  5. Replies: 4
    Last Post: 10-07-2011, 08:27 AM
  6. Listbox fails to update after deleting an item
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2010, 01:15 PM
  7. Update an Item in a list
    By Filendie in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-26-2007, 07:04 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