[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


add carriage return to excel formula for new line

Posted on 2007-07-23
Medium Priority
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

zorvek (Kevin Jones) earned 2000 total points
ID: 19551580
="insert into jobplan(Jpnum,description)values('"&A4&"','"&B4&"')" & CHAR(10) & "go"


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

873 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