+ Reply to Thread
Results 1 to 2 of 2

Compile Error in Excel 2004 when Inputbox contains "VBCRLF"

  1. #1
    QTP Professional
    Guest

    Compile Error in Excel 2004 when Inputbox contains "VBCRLF"


    InputBox "First Line" & vbCrLf & "Secondline" 'No Error appears

    Action_Id = InputBox "First Line" & vbCrLf & "Secondline" "Compliet Error
    Expected End Of Statement.

    Can anyone give me a work around for this isssue?

    Respectfully,


    Darin Duphorn

  2. #2
    Andy Pope
    Guest

    Re: Compile Error in Excel 2004 when Inputbox contains "VBCRLF"

    Hi,

    The function requires brackets when the returned value is being assigned.

    Action_Id = InputBox("First Line" & vbCrLf & "Secondline")

    Cheers
    Andy

    QTP Professional wrote:
    > InputBox "First Line" & vbCrLf & "Secondline" 'No Error appears
    >
    > Action_Id = InputBox "First Line" & vbCrLf & "Secondline" "Compliet Error
    > Expected End Of Statement.
    >
    > Can anyone give me a work around for this isssue?
    >
    > Respectfully,
    >
    >
    > Darin Duphorn


    --

    Andy Pope, Microsoft MVP - Excel
    http://www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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