Consulting

Results 1 to 4 of 4

Thread: Solved: Put quotes around text in cells

  1. #1
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location

    Solved: Put quotes around text in cells

    Is there a formula that can place double quotes around text in cells. I need to do it for columns A:O. If not a macro will do. Thanks
    Peace of mind is found in some of the strangest places.

  2. #2
    VBAX Mentor tpoynton's Avatar
    Joined
    Feb 2005
    Location
    Clinton, MA
    Posts
    399
    Location
    what about

    ="""&A1&"""

    ?

  3. #3
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    =""""&G6&""""
    will do it but not for a cell in situ.
    So otherwise a macro:
    [vba]Sub blah()
    For Each cll In Selection.Cells
    cll.Value = """" & cll.Value & """"
    Next cll
    End Sub
    [/vba]will do this for the currently selected range. If there are any formulae in the selection, they will be converted to values.
    p54cal
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  4. #4
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    4 sets of " did it. Thanks guys.
    Peace of mind is found in some of the strangest places.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •