Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2023, 07:38 AM
Hisham Hisham is offline how to add loop till end of document Windows 7 64bit how to add loop till end of document Office 2007
Novice
how to add loop till end of document
 
Join Date: Nov 2015
Posts: 2
Hisham is on a distinguished road
Question how to add loop till end of document


I need to apply "LtrRun" for all digits with dots between through document. I recorded macro with step and repeat it many but I need this macro to run through document without clicking it many times till end. any help?
Code:
Sub Dots()
'
' Num.Dots Macro
'
'
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
    WordBasic.LtrRun
    Application.Browser.Next
End Sub
Reply With Quote
  #2  
Old 01-12-2023, 06:17 PM
BrianHoard BrianHoard is offline how to add loop till end of document Windows 10 how to add loop till end of document Office 2019
Advanced Beginner
 
Join Date: Jul 2022
Location: Haymarket, VA USA
Posts: 85
BrianHoard is on a distinguished road
Default

Can you post a sample document showing the before and after goal you're trying to do?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add loop till end of document Loop Until End of Document Stephen Ray Word VBA 10 02-16-2023 12:09 PM
how to add loop till end of document How to loop once through document PrincessApril Word VBA 4 04-12-2020 06:06 AM
how to add loop till end of document Loop thru document and create bookmarks jeffreybrown Word VBA 3 09-22-2018 06:04 AM
VB for Word - Need macro to loop each line in a document NDeane Word VBA 5 12-22-2015 08:12 PM
how to add loop till end of document Combining Records of two sheets with Loop till Unique ID abhilashv Mail Merge 1 01-22-2014 04:02 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:51 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft