Consulting

Results 1 to 3 of 3

Thread: code to go to next line in a macro

  1. #1

    code to go to next line in a macro

    hi
    i want a code for a word document macro to put the word to a next line

    ex
    06:00 Pingu Show

    like this it sould display in word for all the documents
    06:00
    Pingu Show

  2. #2
    VBAX Expert
    Joined
    Sep 2016
    Posts
    788
    Location
    Find what: ([0-2][0-9]:[0-5][0-9]) (*^13)
    Replace with: \1^p\2

  3. #3
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Quote Originally Posted by mana View Post
    Find what: ([0-2][0-9]:[0-5][0-9]) (*^13)
    Replace with: \1^p\2
    It would have been helpful had you specified that your solution is a wildcard Find/Replace. An ordinary Find/Replace with those expressions won't work.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •