Solved

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

Posted on 2013-10-25
4
340 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
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
als315 earned 300 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 39

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 31

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

17 Experts available now in Live!

Get 1:1 Help Now