Results 1 to 4 of 4

Thread: Need help writing some VB code

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2017
    Posts
    20

    Post Need help writing some VB code

    Hi,

    I'm looking to write some code which will:

    Detect 'Heading 6' style and make the numbers restart from 1.


    headings.docx

    This is an example document of what I want it to become but I need it to be in a macro so it will run automatically.

    Thanks

    Yoda

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Need help writing some VB code

    What code have you got?

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2017
    Posts
    20

    Re: Need help writing some VB code

    I haven't got any code at the moment I'm not sure where to start, I haven't done much VB

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

    Re: Need help writing some VB code

    I haven't done much VB
    try recording a macro, to generate some sample code
    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

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