+ Reply to Thread
Results 1 to 3 of 3

VBA Compile Error : line number or label or statement or end of statement

  1. #1
    Forum Contributor
    Join Date
    05-16-2013
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2010
    Posts
    100

    VBA Compile Error : line number or label or statement or end of statement

    HI guys,

    I am getting this error "Compile Error : line number or label or statement or end of statement" when I add this code.

    Here are the lines that are giving the errors.

    Print #1, "&<n0:mt_nswh_order xmlns:n0="http://Healthcare_CRM"

    Print #1, "xmlns: prx = "urn:sap.com:proxy:XIP:/1SAI/TASE6B9B6B279ABF09AA966:710:2008/01/11" > "

    Can any one please help.

    Thanks,
    Cheers

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA Compile Error : line number or label or statement or end of statement

    "&<n0:mt_nswh_order xmlns:n0="http://Healthcare_CRM" has a " mid way, you need to put

    "&<n0:mt_nswh_order xmlns:n0=""http://Healthcare_CRM"
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    05-16-2013
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: VBA Compile Error : line number or label or statement or end of statement

    Hi Nathan the actual code is in one whole line i was splitting it into two.

    <n0:mt_nswh_order xmlns:n0="http://Healthcare_CRM" xmlns:prx="urn:sap.com:proxy:XIP:/1SAI/TASE6B9B6B279ABF09AA966:710:2008/01/11">

    This is the whole line that i want to print in an XML file. is there any way to do it. because its giving me errors when i try different ways.

+ 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