+ Reply to Thread
Results 1 to 6 of 6

Issue using iRow

  1. #1
    Registered User
    Join Date
    05-18-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    10

    Issue using iRow

    Hi,

    Having an issue with a VBA formula. The formula will work while I have a specific cell identified (eg. J2), but when I elect for the row number to be ‘iRow’ it mysteriously won’t work. Just to clarify I have the parameters for ‘iRow’ set up, and they do work with other formulas I have running just not this one.

    The broken code:
    Please Login or Register  to view this content.
    Other codes that do work:
    (basically the same thing, just 2 instead of iRow)
    Please Login or Register  to view this content.
    &
    (test that iRow is working)
    Please Login or Register  to view this content.
    Any ideas?
    Last edited by faoltaem; 11-15-2012 at 03:02 AM. Reason: SOLVED

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Issue using iRow

    You have a space before one of the Ws here.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,620

    Re: Issue using iRow

    You have some characters: ” & “ in your code that are not quotation marks (")
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    05-18-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    10

    Re: Issue using iRow

    Thanks, still not working for me, fixed the spaces:

    Please Login or Register  to view this content.
    The " & iRow & " is still there because that's how iRow works. And I've had to break it over two lines since it doesn't fit on one.

    The error I get says:
    Compile error:
    Expected: end of statement

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Issue using iRow

    To continue a string on a new line you need to concatenate.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    05-18-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    10

    Talking Re: Issue using iRow

    Oh, thank you so much. That has been driving me crazy. I thought { _} was the correct way to concatenate, turns out it's {" & _"}.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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