Search:

Type: Posts; User: Stylus; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    305

    Macro to determine paragraph formatting

    I’m writing a macro in Word 2010 that will scan documents and apply custom styles to paragraphs that have direct formatting. This is partly for legacy documents (pre Word 2007) and partly for...
  2. Thank you! What I want to do is make my global...

    Thank you!

    What I want to do is make my global template only work from a network location.

    I set up a test for WordBasic.FilenameInfo(ThisDocument.FullName, 6) at beginning of the custom ribbon...
  3. Can a Word macro test its run-time environment?

    Is there a way to make a Word macro test its run-time environment?

    In other words, is it possible for a macro to establish whether it is running from a local hard drive or from a network location?...
  4. Replies
    3
    Views
    609

    Pam & Andrew. Thank you again. I will ask a...

    Pam & Andrew.

    Thank you again. I will ask a user for one of the affected docs at work tomorrow morning and post it. I will also see if I can explain the workaround in a simple way, or make a macro...
  5. Andrew, The macro that attaches the global,...

    Andrew,

    The macro that attaches the global, for stye updating purposes, resides in the global. The global therefore has to be added first. So the sequence is: Word opens, pulls in the Global from...
  6. Replies
    3
    Views
    609

    List style "Article/Section"

    Several users have their the list style "Article/Section" applied to their heading styles. I see that Microsoft describes how this can happen, calling it a "harmless little bug."
    ...
  7. Andrew, Thanks for these insights and the code...

    Andrew,

    Thanks for these insights and the code snippet. I've been distracted, struggling with another issue (see my new thread), hence my delayed response.

    I am going to poll the Word users in...
  8. Thank you both! Andrew, my concern has been to...

    Thank you both!

    Andrew, my concern has been to avoid changed/corrupted templates and styles breeding like rabbits in the brush. I've been through that, with year-old problems suddenly reappearing...
  9. Pam Thank you for staying with this. My...

    Pam

    Thank you for staying with this.

    My custom global does indeed provide macros and a custom ribbon, and I'd like to add building blocks to it as well, so my whole strategy depends on Word...
  10. Pam What can I say... it was Friday...

    Pam

    What can I say... it was Friday afternoon...:blush: Henceforth I will read ALL the material someone links me to. Thank you for patience!

    I have been experimenting with this situation and so...
  11. Pam I looked at the article you linked to. The...

    Pam

    I looked at the article you linked to. The file that remains doesn't have a .tmp extension, so I guess I should not have called it a temp file.

    The file I have a problem with drops the...
  12. Thanks Kim, I've set the macro to use...

    Thanks Kim,

    I've set the macro to use Word.Options.DefaultFilePath(wdUserTemplatesPath) & "\" & "normal.dotm". I've sent some samples out to users to see if there are more problems.

    I have a...
  13. Temp version of global template after style copy

    I have all my styles in a global template on a server, and copy these styles to active docs by first attaching the global template to the active doc, then either reattaching the original template or...
  14. Thank you Andrew. One concern I have is...

    Thank you Andrew.

    One concern I have is writing the macro's filepath to Normal so that every user's Word will find its own local Normal. I am assuming/hoping that Word will know this whereabouts...
  15. Attach Normal template after custom template to avoid Word hanging?

    I'm setting up a Global template, styles, and Workgroup Templates where I work.

    Recently someone attempted to open a doc, based on one of my templates, while not connected to our network. After he...
  16. Replies
    3
    Views
    1,070

    Got it to work, though in a puzzling way: The...

    Got it to work, though in a puzzling way:

    The sub I was calling from a sub in the class module was "Private". When I made private sub into a normal sub, the class module was able to call it.
    ...
  17. Replies
    3
    Views
    1,070

    John Thanks for your reply. Let me give some...

    John

    Thanks for your reply. Let me give some details so you will understand what I'm doing.

    I need certain functions performed when a new or existing doc is opened, even if Word is already...
  18. Replies
    3
    Views
    1,070

    Call a sub from a class module

    How can I run a sub, located in class module, from a "normal" module? Is this even technically possible? I keep getting compile errors...

    I have tried moving the sub to the "normal" module and...
  19. Replies
    8
    Views
    2,783

    Andrew That fixed it, thank you.

    Andrew

    That fixed it, thank you.
  20. Replies
    8
    Views
    2,783

    aaaah, I was a bit hasty there... By recording...

    aaaah, I was a bit hasty there...

    By recording a macro I found that the code for the No-Width Optional Break symbol is 8204. I attempted to insert that into my macro-generated string by writing
    ...
  21. Replies
    8
    Views
    2,783

    BigMac56 & Andrew Thank you. The thing is that...

    BigMac56 & Andrew

    Thank you. The thing is that the slashes are for human eyeballs, so replacing them won't work.

    However... I could combine the slash with the NWOB! I just googled that thought...
  22. Replies
    8
    Views
    2,783

    Yes, Word wraps dependent on where the margins...

    Yes, Word wraps dependent on where the margins are - at the margin, regardless of the content it is wrapping.

    I want to use VBA to insert a line break so that I can control where in the text the...
  23. Replies
    8
    Views
    2,783

    VBA to find where Word will put a line break

    How can I get VBA to determine the point where Word will place a line break in a string? I want to control where the line breaks, by finding the last instance of a certain character before Word’s...
  24. nevermind... Figured it out: With style etc...

    nevermind...

    Figured it out:

    With style etc
    CurrentLanguage = Languages(Selection.LanguageID)
  25. Replies
    14
    Views
    3,043

    Paul I was occupied with another project, and...

    Paul

    I was occupied with another project, and neglected to thank you for this code!
Results 1 to 25 of 86
Page 1 of 4 1 2 3 4