+ Reply to Thread
Results 1 to 5 of 5

"Store Value in DICT and Change Color if not exist"

  1. #1
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,272

    "Store Value in DICT and Change Color if not exist"

    i have data in col A example in A1 = "a1234" then store to dict
    after store ,in events Sub Worksheet_Change(ByVal Target As Range)
    while i am edit value in A1 become "a1234 New Value" then New Value become Font.Bold how
    can do ,please help me

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: "Store Value in DICT and Change Color if not exist"

    I wonder what you want to achieve looping through all keys (outer loop) and then in inner loop go through all xlCellTypeConstants cells in column A?
    May be it would be easier to understand if you attach sample spreadsheet with "before" and "after" sheets.

    Moreover, I do not think that your approach to making few characters bold
    Please Login or Register  to view this content.
    can work at all, because
    Please Login or Register  to view this content.
    is just a string, which do not have properties like Font etc.

    I'd rather use:
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    for making last 4 characters in range r1 bold
    Best Regards,

    Kaper

  3. #3
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,272

    Re: "Store Value in DICT and Change Color if not exist"

    Sir kaper : example in a1 value = "abcdef" if i am add text in a1 become abcdefgggggggg after add new value gggggggg become bold

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: "Store Value in DICT and Change Color if not exist"

    try in your sheet code (I assumed you do not have any objects like graphs embedded in your sheet, and you change only one cell at a time):
    Please Login or Register  to view this content.
    See attachment
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,272

    Re: "Store Value in DICT and Change Color if not exist"

    great job Kaper
    add rev point thankyou solve

+ 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] Does a "averageproduct" exist that would work as a "sumproduct"?
    By RunwayRiga in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2016, 07:31 AM
  2. Conditional format to change cell color if over "x" days late
    By matador1872 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2015, 12:17 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. If File Exist from Col. G, Color Row Yellow, If "x" in Col. C, Color Row Green
    By november84 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2012, 06:55 PM
  5. Macro to change ""Text"" color?
    By L_ter in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2009, 01:28 AM
  6. If "text" exist within "cell" then TRUE
    By JemyM in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 09-16-2005, 07:41 PM
  7. cell to change color =IF(B7>53,"Critical","Normal")
    By fgiord in forum Excel General
    Replies: 3
    Last Post: 08-18-2005, 05:05 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