none
vb and word RRS feed

  • Question

  • hi friends 

    i set a button to open a word document 

    and i need to know how can i fill my doc. table by vb2010 

    LIKE THIS PHOTO

    hi friends   i set a button to open a word document   and i need to know how can i fill my doc. table by vb2010   LIKE THIS PHOTO

    Saturday, September 10, 2016 4:17 PM

Answers

All replies

  • Hello,

    This question would be best addressed in the Word for Developer forum. If you like, myself or another moderator can move your question there.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    • Marked as answer by Hayder Salah Sunday, September 11, 2016 6:35 AM
    • Unmarked as answer by Hayder Salah Sunday, September 11, 2016 6:35 AM
    Saturday, September 10, 2016 5:32 PM
  • thanx ,yes please move it 
    Sunday, September 11, 2016 6:35 AM
  • Hi Hayder Salah,

    According to your description, you could populate table, use this code

    ActiveDocument.Tables(1).Cell(1, 1).Range.Text =  "Value of Control"


    This will write to the first cell in the first table.

    I would also recommend see this link:

    Automating Word Tables for Data Insertion and Extraction

    Thanks for your understanding

    • Proposed as answer by David_JunFeng Sunday, September 18, 2016 1:57 PM
    • Marked as answer by David_JunFeng Monday, September 19, 2016 5:26 AM
    Monday, September 12, 2016 2:27 AM