Results 1 to 5 of 5

Thread: To disable superscript option in microsoft word using vb6

  1. #1

    Thread Starter
    Registered User
    Join Date
    Nov 2017
    Posts
    3

    To disable superscript option in microsoft word using vb6

    I want to disable the options like subscript,superscript,highlight available in microsoft word which is integrated in vb6 form. Is it possible to do this via vb6 code ?

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: To disable superscript option in microsoft word using vb6

    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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

    Re: To disable superscript option in microsoft word using vb6

    How is your document integrated? OLE or a SetParent API or ?
    You may be able to remove certain toolbars which would prevent the user from interacting with those commands depending upon what you need
    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

  4. #4

    Thread Starter
    Registered User
    Join Date
    Nov 2017
    Posts
    3

    Re: To disable superscript option in microsoft word using vb6

    Quote Originally Posted by RobDog888 View Post
    How is your document integrated? OLE or a SetParent API or ?
    You may be able to remove certain toolbars which would prevent the user from interacting with those commands depending upon what you need
    Word is integrated with vb6 by SetParent API. Is there any code sample to disable subscript, superscript

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

    Re: To disable superscript option in microsoft word using vb6

    Quote Originally Posted by rajasahe View Post
    Word is integrated with vb6 by SetParent API. Is there any code sample to disable subscript, superscript
    It may end up a bit kludgey but heres my faq on accessing command bars and menu items. You would simply need to remove the command bars you don't desire right after you setparent call.
    http://www.vbforums.com/showthread.p...toolbar-button
    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