-
Jun 9th, 2017, 05:36 AM
#1
Thread Starter
Junior Member
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
-
Jun 9th, 2017, 07:21 AM
#2
Re: Need help writing some VB code
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...
-
Jun 9th, 2017, 05:29 PM
#3
Thread Starter
Junior Member
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
-
Jun 9th, 2017, 11:05 PM
#4
Re: Need help writing some VB code
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|