+ Reply to Thread
Results 1 to 9 of 9

wrap in function array

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-31-2018
    Location
    venezia
    MS-Off Ver
    2007
    Posts
    492

    wrap in function array

    Hello to all.
    how to wrap (split into two lines) in this array

    TabOrder = Array("H4", "L4", "P4", "H8", "J8", "N8", "P8", "H9", "J9", "N9", "P9", "H12", "J12", "N12", "P12", "H14", "H16", "J16", "N16", "P16", "H18", "C22", "H22", "H23", "J22", "J23", "N22", "N23", "P22", "P23", "C26", "B32", "H32", "N32")
    this not work

    TabOrder = Array("H4", "L4", "P4", "H8", "J8", "N8", "P8", "H9", "J9", "N9", "P9", "H12", "J12",) &_
    ("N12", "P12", "H14", "H16", "J16", "N16", "P16", "H18", "C22", "H22", "H23", "J22", "J23", "N22", "N23", "P22", "P23", "C26", "B32", "H32", "N32")
    thanks you
    john

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,826

    Re: wrap in function array

    Try:

    TabOrder = Array("H4", "L4", "P4", "H8", "J8", "N8", "P8", "H9", "J9", "N9", "P9", "H12", "J12", & _
                     "N12", "P12", "H14", "H16", "J16", "N16", "P16", "H18", "C22", "H22", "H23", & _
                     "J22", "J23", "N22", "N23", "P22", "P23", "C26", "B32", "H32", "N32")
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-31-2018
    Location
    venezia
    MS-Off Ver
    2007
    Posts
    492

    Re: wrap in function array

    Hi,
    no syntax error

  4. #4
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: wrap in function array

    Quote Originally Posted by TMS View Post
    . . .
    TabOrder = Array("H4", "L4", "P4", "H8", "J8", "N8", "P8", "H9", "J9", "N9", "P9", "H12", "J12", & _
    . . .
    The problem is the &. It makes this a syntax error. Try

    TabOrder = Array("H4", "L4", "P4", "H8", "J8", "N8", "P8", "H9", "J9", "N9", "P9", "H12", _
                     "J12", "N12", "P12", "H14", "H16", "J16", "N16", "P16", "H18", "C22", "H22", _
                     "H23", "J22", "J23", "N22", "N23", "P22", "P23", "C26", "B32", "H32", "N32")

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,826

    Re: wrap in function array

    Did you copy and paste it or retype it?

  6. #6
    Forum Contributor
    Join Date
    10-31-2018
    Location
    venezia
    MS-Off Ver
    2007
    Posts
    492

    Re: wrap in function array

    Copy to clipboard

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,826

    Re: wrap in function array

    I think I might have had this problem before. Unfortunately, I can't test it right now.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,826

    Re: wrap in function array

    Ah, thank you ... and that would be why I had the problem in the past

  9. #9
    Forum Contributor
    Join Date
    10-31-2018
    Location
    venezia
    MS-Off Ver
    2007
    Posts
    492

    Re: wrap in function array

    Oh yes, now work.
    Thank you

+ 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. How to wrap a range in a TEXT() function?
    By djarcadian in forum Excel General
    Replies: 2
    Last Post: 05-30-2015, 10:56 AM
  2. [SOLVED] If function for a wrap time sheet
    By Shellybelly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-17-2013, 11:53 AM
  3. How to wrap an array function in VBA
    By kayard in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2010, 10:54 AM
  4. Text wrap and allow cell height to increase with wrap
    By tpenterprize in forum Excel General
    Replies: 1
    Last Post: 10-19-2007, 02:30 PM
  5. The Wrap Cell Function
    By AnthonyB in forum Excel General
    Replies: 6
    Last Post: 06-05-2007, 08:38 PM
  6. Wrap text using a function
    By hmanne in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-16-2007, 10:53 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