+ Reply to Thread
Results 1 to 8 of 8

VBA: Put quotes in Italics

  1. #1
    Registered User
    Join Date
    05-15-2009
    Location
    Cambridge
    MS-Off Ver
    Excel 2003
    Posts
    23

    VBA: Put quotes in Italics

    Hi, hopefully a simple problem to explain and solve!

    I have an excel table containing many cells of text. The text includes quotes. I am looking for a way to find and replace the quotes to make them italic or bold.

  2. #2
    Registered User
    Join Date
    05-15-2009
    Location
    Cambridge
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Put quotes in Italics

    Quotes are all different but between ".

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Put quotes in Italics

    You could try using Conditional Formatting, to find ", but that will highlight the whole cell.

    If thats not what you want, then you will only be able to do this with VBA
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-15-2009
    Location
    Cambridge
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Put quotes in Italics

    Yup think VBA needed!

  5. #5
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,755

    Re: VBA: Put quotes in Italics

    Thread moved accordingly and title augmented.
    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.

  6. #6
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: VBA: Put quotes in Italics

    The below code makes the characters between the quotes bold but, does not remove the quotes;

    Select the range with your mouse and run the macro named "Test"

    Please Login or Register  to view this content.
    Last edited by Haluk; 07-10-2020 at 05:55 AM.

  7. #7
    Registered User
    Join Date
    05-15-2009
    Location
    Cambridge
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: VBA: Put quotes in Italics

    Works great thanks.

  8. #8
    Valued Forum Contributor
    Join Date
    08-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, Office 365
    Posts
    467

    Re: VBA: Put quotes in Italics

    Hi

    and if you want both bold and italic, you could..
    Please Login or Register  to view this content.
    zeddy

+ 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] Names.Add method creates named range using quotes - Need to remove quotes
    By AstToTheRegionalMGR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2016, 11:48 PM
  2. [SOLVED] Save to a CSV with Double Quotes EXCEPT the Second Column with NO Quotes
    By tkuy2k in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-16-2013, 09:54 AM
  3. Save to a CSV with Double Quotes EXCEPT the First Column with NO Quotes
    By justforthis1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-13-2013, 07:02 PM
  4. [SOLVED] Double Quotes using Chr(34) and Extra Quotes when saving as text file
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2013, 12:26 PM
  5. Remove text between quotes, variable length and number of quotes
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-14-2011, 10:40 AM
  6. Export to CSV with double quotes but ignore items that have quotes
    By capnhud in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2010, 03:13 PM
  7. Setting a cell's value as a formula containing quotes or double quotes using vba
    By Metshrine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2006, 04:10 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