?
Solved

Excel line breaks

Posted on 2016-10-13
1
Medium Priority
?
43 Views
Last Modified: 2016-10-13
I have an excel file which I have multiple lines in setup as:-
=Speed!B6 & "ms     " & Speed!C6 & "Mbps     " & Speed!D6 & "Mbps" & CHAR(10) &
DriveSpace!B4 & "     " & DriveSpace!C4 & " / " & DriveSpace!D4&CHAR(10) &
DriveSpace!B5 & "     " & DriveSpace!C5 & " / " & DriveSpace!D5&CHAR(10) &
DriveSpace!B6 & "     " & DriveSpace!C6 & " / " & DriveSpace!D6&CHAR(10) &
DriveSpace!B7 & "     " & DriveSpace!C7 & " / " & DriveSpace!D7&CHAR(10) &
DriveSpace!B8 & "     " & DriveSpace!C8 & " / " & DriveSpace!D8&CHAR(10) &
DriveSpace!B9 & "     " & DriveSpace!C9 & " / " & DriveSpace!D9

Open in new window


Which works fine in excel, however when I copy it to another program (in this case Access or notepad) its all on one line.

Any idea how I can have multiple lines in an excel cell, and when I copy it out to notepad its also on multiple lines?
0
Comment
Question by:tonelm54
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 52

Accepted Solution

by:
Rgonzo1971 earned 2000 total points
ID: 41841755
Hi,

pls try

=Speed!B6&"ms     " & Speed!C6 & "Mbps     " & Speed!D6 & "Mbps" & CHAR(13)  & CHAR(10) &
DriveSpace!B4 & "     " & DriveSpace!C4 & " / " & DriveSpace!D4& CHAR(13)  & CHAR(10) &
DriveSpace!B5 & "     " & DriveSpace!C5 & " / " & DriveSpace!D5& CHAR(13)  & CHAR(10) &
DriveSpace!B6 & "     " & DriveSpace!C6 & " / " & DriveSpace!D6& CHAR(13)  & CHAR(10) &
DriveSpace!B7 & "     " & DriveSpace!C7 & " / " & DriveSpace!D7& CHAR(13)  & CHAR(10) &
DriveSpace!B8 & "     " & DriveSpace!C8 & " / " & DriveSpace!D8& CHAR(13)  & CHAR(10) &
DriveSpace!B9 & "     " & DriveSpace!C9 & " / " & DriveSpace!D9

Open in new window

Regards
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

765 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