Results 1 to 4 of 4

Thread: export data from excel to word

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    1

    export data from excel to word

    Hi does anyone know how to export selected data from an excel document and insert it in to specific points in a word document, is it even possible? any help appreciated..thanks

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: export data from excel to word

    Welcome to the Forums.

    Yes its possible but will take a decent amount of code.

    To start search the Forums for code examples (there are allot) on accessing
    Excel using VB and also for accessing a Word Document. Then we would
    merge the two together in a logical sense.

    Connect to Excel and read your selected data. Then iterate through the
    selected range and write it in the word document at the desired paragraph
    or ???

    Get the ball rolling and I will guide you on your way
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3
    New Member
    Join Date
    Feb 2002
    Location
    Lithuania
    Posts
    4

    Re: export data from excel to word

    Well... i have the same problems. However yhe answer of moderator is terribly beurocratic and gives no information at all. I have looked through the code examples. No solution for this probleme there

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: export data from excel to word

    Romur, a Moderators duties include overseeing their assigned Forum(s) for
    many things like violations of the Forums AUP and secondly, answering
    questions.

    I post allot of anwers every day, probably one of the top posters, but I dont
    think anyone will write an entire program for you if you dont show some
    initive first.

    After a very quick and simple Search I found several examples that would
    help you get started accesing Excel and Word from VB.

    These two are the simplest and least cluttered. I would have replied earlier
    but the search got so many hits that it took a while to come back from the
    server.

    Accessing Excel using VB.

    Accessing Word using VB.

    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width