Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft Word - select all even columns in a table

Status
Not open for further replies.

ccdc

MIS
Dec 9, 2007
1
US
Is there a way via VBA to automatically select and cut all even columns in a table? I need to do this to tables with varying columns sizes, but would always need just the even columns copied..thanks much
 
What have you tried so far and where in your code are you stuck ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 





Hi,

Please explain WHY you are cutting even columns in a table? What are you trying to accomplish?

Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
ccdc, both PHV and Skip have good points. It would help if you explain the logic behind wanting to do this, AND we can possibly help more if you show us what you have tried so far.

Also, your request is not totally clear. On one hand:

"select and cut all even columns"

on the other hand:

"the even columns copied"

Cutting is one thing. Copying is another.

In either case...yes, VBA can do it.

Hint: each column has an index number. You can determine if it is odd or even using Mod 2.

faq219-2884

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top