+ Reply to Thread
Results 1 to 10 of 10

Append text in bold cells

  1. #1
    Forum Contributor
    Join Date
    03-11-2010
    Location
    India
    MS-Off Ver
    2010
    Posts
    268

    Append text in bold cells

    Hi

    I want to find all bold cells in column M and append a semicolon ( ; ) at end of such cells.
    I have written the following sub for that.
    While this does what I want, is this the most efficient way, or is there a better way?
    (I am assuming that I have to do it only for rows 3-9)

    tia
    Ajay

    Please Login or Register  to view this content.
    Last edited by ajaykgarg; 07-29-2011 at 04:18 PM. Reason: Removed "Solved" as this doesn't seem to work with 2010

  2. #2
    Registered User
    Join Date
    06-29-2011
    Location
    California
    MS-Off Ver
    Excel 2003/2007
    Posts
    58

    Re: Append text in bold cells

    Seems pretty efficient to me - Whenever you have to use the find/search feature of excel you're going to get a bit of slowdown.

    The only other way to really test it would be to write a do/loop until that checks if the value of the cell contains bolded characters. It's probably easier just to stick with what you have and it wouldn't be much quicker, if any bit at all.

  3. #3
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Append text in bold cells

    Try this code for change all cells in column M which have font.bold style
    Please Login or Register  to view this content.
    Best Regards
    MaczaQ

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Append text in bold cells

    @maczaq

    Please Login or Register  to view this content.



  5. #5
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Append text in bold cells

    Quote Originally Posted by snb View Post
    @maczaq

    Please Login or Register  to view this content.
    As always Thank you snb for showing me better way...

    Best Regards

  6. #6
    Forum Contributor
    Join Date
    03-11-2010
    Location
    India
    MS-Off Ver
    2010
    Posts
    268

    Re: Append text in bold cells

    Thanks, snb and others. This does what I wanted with fewer lines of code.

  7. #7
    Forum Contributor
    Join Date
    03-11-2010
    Location
    India
    MS-Off Ver
    2010
    Posts
    268

    Re: Append text in bold cells

    snb,

    I think
    Please Login or Register  to view this content.
    doesn't work with 2010.
    How can I customize this for 2010?

    Also, where can I find a list of changes in 2010?

    Thanks
    Ajay

  8. #8
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Append text in bold cells

    according to your profile, you use Excel 2007 and it works on it without error (unless there are no values in columns(13) then it will fail. I don't see why it wouldn't work on 2010 but I am going to test it when I get home tonight.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  9. #9
    Forum Contributor
    Join Date
    03-11-2010
    Location
    India
    MS-Off Ver
    2010
    Posts
    268

    Re: Append text in bold cells

    Modred, did you get a chance to test it on 2010?

  10. #10
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Append text in bold cells

    Sorry for not responding but yes and it worked without error for me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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