Consulting

Results 1 to 3 of 3

Thread: Carriage Return not working

  1. #1

    Carriage Return not working

    I have a cell that looks like this:

    Base Cost
    (per thousand)

    It looks exactly like that so if you check the formula bar, it will be on 2 differnet lines.

    So in my macro, i am search for that cell but it's not working. I have it as:

    cStay = Array("Nae", "List Name", "Base Cost&Chr(10)&(per thousand)")
    Please help

  2. #2
    VBAX Expert TrippyTom's Avatar
    Joined
    Jul 2005
    Location
    New York, NY (USA)
    Posts
    556
    Location
    I haven't tested, but it looks like you need to add some " marks before and after the & signs:
    [VBA]cStay = Array("Nae", "List Name", "Base Cost" & Chr(10) & "(per thousand)")[/VBA]
    Office 2010, Windows 7
    goal: to learn the most efficient way

  3. #3
    Quote Originally Posted by TrippyTom
    I haven't tested, but it looks like you need to add some " marks before and after the & signs:
    [vba]cStay = Array("Nae", "List Name", "Base Cost" & Chr(10) & "(per thousand)")[/vba]
    that worked, thank you!

Posting Permissions

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