?
Solved

to export data from excel to notepad as semicolon and side to side

Posted on 2013-10-25
4
Medium Priority
?
351 Views
Last Modified: 2013-10-31
I have one excel file and it consists of the cell of 468 and I need them in word or notepad as semicolon between each other
for example

in Excel

1.Test1
2.Test2
3.Test3
--
--
--
468.test 468

and I would like them within notepad or word as semicolon between each other as sequentially and side to side

Test1;Test2;Test3;Test4 ............ ;Test468

how can I do this? thanks
0
Comment
Question by:TRocex
[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
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
als315 earned 1200 total points
ID: 39599892
You can use this function:
Public Function Concat(R As Range) As String
Dim c
Concat = ""
For Each c In R
        Concat = Concat & c.Value & ";"
Next
Concat = Left(Concat, Len(Concat) - 1)
End Function

Open in new window

Look at sample
Concat.xls
0
 

Author Comment

by:TRocex
ID: 39599998
thanks so how I should run your function or where should I write this function in excel?
0
 
LVL 40

Expert Comment

by:als315
ID: 39600102
Look at sample. There is function and example. You can press Alt+F11 and in Module1 you will see Function
0
 
LVL 33

Expert Comment

by:Paul Sauvé
ID: 39600544
Another approach is to copy the Excel column as a table to Word and use the Table to Text function with a semicolon as a delimiter!
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

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.
Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

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