Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vba courses london - importing files

Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - Importing files

vba courses london - Importing files

ResolvedVersion Standard

Sunny has attended:
Excel VBA Intro Intermediate course
Excel VBA Intro Intermediate course

Importing files

Can you tell me how to import MS Word file into excel and change into excel form?

RE: Importing files

Hi Sunny

There are two ways of approaching this. In both cases you need to have your data in Word stored in a table.

Firstly you can copy the table from Word and paste it directly into your Excel sheet.

Alternatively you will need to make sure your Word document contains only the table of data then save the document into a format that Excel can work with such as text file (.txt) or comma separated values (.csv). Saving your information in these formats allows Excel to keep track of the structure of your data when you carry out the import. Once your file is saved go back to Excel and from the Data menu choose import external data and change the Files of Type drop down box to list Text files. You should then be able to browse to your word file and select it. After you click on OK Excel will ask for any information it needs to understand your data then import it into your current sheet.

With your data imported you can call up the data form by clicking in your data then from the Data menu choosing Form.

I hope this helps Sunny. Do let us know if you have any other questions about this topic or Excel in general.

Kind regards,

Andrew

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

VBA tip:

Count the Rows and Columns in a Selection

If you need to count the number of rows or columns in a worksheet use the following code:

Selection.Rows.Count - Returns the number of rows in the selection

Selection.Columns.Count - Returns the number of columns in the selection

Selection.CurrentRegion.Rows.Count - Returns the number of rows in the current region of the selection

View all VBA hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.