![]() |
|
#2
|
|||
|
|||
|
This works for me
Sub DuplMultPg() 'https://www.msofficeforums.com/word-vba/53764-duplicate-macro-keeps-giving-syntax-error.html Dim Pg As Long, Count As Long, i As Long Pg = InputBox("Enter the Page to Duplicate") Count = InputBox("Enter Number of times to duplicate") With Selection .GoTo wdGoToPage, wdGoToAbsolute, Pg .Bookmarks("\Page").Range.Copy For i = 1 To Count: .Paste: Next End With End Sub |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Syntax Error in computed field | newcomer@flounder.com | Word | 6 | 09-19-2023 08:41 AM |
| Error handling in formula - suppress 'Syntax Error' | Cosmo | Word | 7 | 02-24-2014 07:08 AM |
| Using multiple formulas in one (IF, AND and SUM) gives syntax error | markdeniet | Word | 1 | 02-05-2014 05:17 AM |
Underline word with error witthout giving a suggestion for correcting...
|
sauerlu | Word | 1 | 01-29-2014 11:15 AM |
VLookup is giving me #N/A error, help with data or formula?
|
ladygogo78 | Excel | 3 | 10-22-2012 12:28 AM |