Word - insert rows based on cell value

Closed
garridosk Posts 1 Registration date Monday 14 November 2011 Status Member Last seen 15 November 2011 - 15 Nov 2011 à 12:18
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 1 Dec 2011 à 07:03
Hello,
I am a macro novice with several questions. Please help!

1. I created a Document Change form with tables in word. The user will input a number "n" into one of the cells. I need to have word automatically insert "n-1" rows after a certain cell in 2 of the tables.

2. How are cells from Word tables referenced in code? For example, if I'm referring to the cell in the 3rd row and the 2nd column in one of the tables, how would that be designated?

3. Is there a difference between a "macro" vs. "VBA"?

Thanks so much,
Sandra

Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
1 Dec 2011 à 07:03
I dont think you would be able to do it in Word (not at least without macro). The simple workaround I can think of is that you copy this table. Paste in excel. Use text-to-column option to split into cells and then paste back in word

Having said that
for #1 and #2, see if this helps
http://www.gmayor.com/word_vba_examples.htm


for #3, VBA is visual basic for application. In nutshell language. Macro is the product of that language. so basically you use vba to write macro in microsoft office products