Separation of data

I want to copy a part of a table from Adobe to Excel, but all the data are getting copied to one cell. How can I use VBA to separate this set of data each one into different cell? Thank you beforehand.

Answer Wiki

Hello Lyu,
this depends on how your data is formatted/written.
Example, if you know that there’s a separator character you may use the Split function
<pre>
MYDATA = Split(DATA,”mychar”)
cell1= MyData(0)
cell2= MyData(1)
</pre>
…and so on.

If instead you know that it is a matter of data length you may use:
<pre>
MyCell1 = Left(MyData,6)
MyCell2 = Mid(MyData,6,4)
MyCell3 = Right(MyData,2)
</pre>

…and so on.

It may be better if you post your kind of data so I, or another peer, can show you an example.
Bye

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: &nbsp

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy