+ Reply to Thread
Results 1 to 5 of 5

VBA: dependent cells to follow decimal formatting of parent cell

  1. #1
    Registered User
    Join Date
    08-19-2019
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    3

    VBA: dependent cells to follow decimal formatting of parent cell

    Hello,

    New to this forum, I thank you for your help in advance.

    I need dependent cells to follow the decimal formatting of a one parent cell. I've done this with format painter but my parent cell decimal requirements changes from time to time and I need the dependent cells to adjust and update accordingly.

    Sometimes I might need to show no decimal places while other times I'll need to show one, or possibly two places.

    In short, I want to change the decimal formatting of the parent cell and have this dictate the dependent cells on a per case basis.

    Please see the following screenshots for examples of what I want to accomplish.

    For example only, the Parent cell is in red, dependent cells in yellow. I don't need anything other than the decimal formatting to be copied so color is not an issue.

    Thank you!

    scenario 1.JPG

    scenario 2.JPG

    scenario 3.JPG

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,371

    Re: dependent cells to follow decimal formatting of parent cell

    Welcome to the forum.

    This cannot be done natively. Would you like me to move this to the VBA section for you?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-19-2019
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    3

    Re: dependent cells to follow decimal formatting of parent cell

    Yes please. Thanks for the heads up.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,371

    Re: VBA: dependent cells to follow decimal formatting of parent cell

    Thread moved and title tagged.

  5. #5
    Registered User
    Join Date
    08-19-2019
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    3

    Re: VBA: dependent cells to follow decimal formatting of parent cell

    Found help via another forum.

    Here's what I came up with and works for my purposes:

    I was able to reformat the parent cell and run the macro to update the sheet everytime I needed a new format.

    My line ended up looking like this:

    Please Login or Register  to view this content.
    Anytime you change the formatting of the parent cell (e.g. add, remove decimal places) you have to run the macros to update.

    Hope this helps someone else and thanks!

+ 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] Auto-clear dependent dropdown when parent cell is changed
    By Ceekimmy in forum Excel - New Users/Basics
    Replies: 12
    Last Post: 10-03-2023, 02:01 AM
  2. [SOLVED] Auto-clear entire row with dependent dropdown lists when parent cell is changed
    By betheeem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2015, 09:56 AM
  3. [SOLVED] Dependent Dropdowns, clearing dependent value when parent value changes
    By ptmald in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2013, 01:52 PM
  4. Follow up questions to original post about Hiding Rows dependent on cell value
    By orly_sm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2012, 05:40 PM
  5. [SOLVED] The VBA code to auto-clear dependent drop down selection when parent cell change.
    By Hotgirl in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-29-2012, 07:48 PM
  6. Replies: 3
    Last Post: 01-04-2010, 02:09 PM

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