add carriage return to excel formula for new line

Posted on 2007-07-23
Last Modified: 2008-03-17

I have a insert formual in an excel sheet,from here i copy it to atext file and run it into sql server

="insert into jobplan(Jpnum,description)values('"&A4&"','"&B4&"')go"

however I want the go in the about to appear on the second line like so

="insert into jobplan(Jpnum,description)values('"&A4&"','"&B4&"')
so my text file will look like this:

insert into jobplan(Jpnum,description)values('plan1','building')

how do I achieve this?
Question by:rutgermons
    1 Comment
    LVL 81

    Accepted Solution

    ="insert into jobplan(Jpnum,description)values('"&A4&"','"&B4&"')" & CHAR(10) & "go"


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
    This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
    This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
    This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now