Results 1 to 13 of 13

Thread: Automating MSWord in VB 6.0

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    66

    Question Automating MSWord in VB 6.0

    Hi to all...
    I am working on Word Automation with VB 6.0... I want to disable some menu control of word from it... Can i do that...
    Please Reply ASAP...
    Thanks in advance...
    Jatin
    Last edited by JatinProg; Sep 13th, 2005 at 03:44 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Automating MSWord in VB 6.0

    You will need to be more specific. What controls?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    66

    Re: Automating MSWord in VB 6.0

    for ex.... Edit menu... of one SubMenu under it...

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Automating MSWord in VB 6.0

    Quote Originally Posted by JatinProg
    for ex.... Edit menu... of one SubMenu under it...
    Which sub menu under Edit?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    66

    Re: Automating MSWord in VB 6.0

    i want that user can no change the Font of the Document... Is it possible that u can disable the menu item...

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Automating MSWord in VB 6.0

    This is more of a VBA question than it is a VB question so you need the VBA folks here in Office Development looking at it.

    These folks showed me how to manipulate some menu items in Word a little while ago and what I got from them works like a champ. I'm sure some one here will know how to do the Fonts thing that you need done.

    Moved from ClassicVb.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    66

    Re: Automating MSWord in VB 6.0

    Thanks Hack
    I wana know that how did you do that.. i meens that how to change the category or thread... like you have change it for me.. ie moved my thread from Classic to OfficeDeveloped..

    and more over i dont know to much of VBA.. I havent used it before... can you please give me the briefin

    Thanks

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Automating MSWord in VB 6.0

    Quote Originally Posted by JatinProg
    Thanks Hack
    I wana know that how did you do that.. i meens that how to change the category or thread... like you have change it for me.. ie moved my thread from Classic to OfficeDeveloped..

    and more over i dont know to much of VBA.. I havent used it before... can you please give me the briefin

    Thanks
    I'll leave the VBA Q&A to the VBA folks. This is where I come when I have questions on Office Automation, and they haven't failed me yet, and I'm sure you will get the assistance you need as well.

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    66

    Re: Automating MSWord in VB 6.0

    you didn't get me dear... i just wana ask how to move my thread from classicVB to OfficeDeveloper...

  10. #10
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Automating MSWord in VB 6.0

    Quote Originally Posted by JatinProg
    you didn't get me dear... i just wana ask how to move my thread from classicVB to OfficeDeveloper...
    Moderators can do stuff like that.

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Automating MSWord in VB 6.0

    Quote Originally Posted by JatinProg
    i want that user can no change the Font of the Document... Is it possible that u can disable the menu item...
    Anyone know how this can be accomplished?

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

    Re: Automating MSWord in VB 6.0

    There are several ways to disable the font of a document but they may also do a pste of formatted text into the document that will also have to be prevented.

    It might be easier to just make the doc read-only?
    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

  13. #13

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    66

    Re: Automating MSWord in VB 6.0

    hi Rob..
    i just want to disable that menu item...
    can u please help

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