Re: Vba to read column of text
- From: "Dave Lett" <dlett@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 4 Apr 2005 12:51:46 -0400
Hi Ben,
You could use something as simple as the following:
ActiveDocument.Tables(1).Columns(1).Select
Selection.Copy
Documents.Add
Selection.Paste
Just be sure that it's really the first table of the document and first
column of the table that you want to copy.
HTH,
Dave
"Ben" <Ben@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CDD0A1BC-F1C4-4257-B6D3-57F69C638AFC@xxxxxxxxxxxxxxxx
> Hi,
>
> Is there a way using vba that can copy a particular column of the text
that
> i want and put into the column of the new file.
>
> For example:
> Existing colum
>
> Name Age
> Lee 23
> tan 34
> rich 34
>
>
> Copy the column of the name and paste it into new file of a new column as
> below:
>
> Name
> lee
> tan
> rich
>
>
> please advise.
>
> thanks.
>
> regards,
> ben
.
- Follow-Ups:
- Re: Vba to read column of text
- From: Ben
- Re: Vba to read column of text
- References:
- Vba to read column of text
- From: Ben
- Vba to read column of text
- Prev by Date: RE: Normal.dot says it's saving changes, but the changes are not s
- Next by Date: change mulptile fields across several doc's
- Previous by thread: Vba to read column of text
- Next by thread: Re: Vba to read column of text
- Index(es):
Relevant Pages
|