View Single Post
 
Old 08-15-2021, 05:44 AM
laith93 laith93 is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Jul 2021
Posts: 117
laith93 is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
but the following alternative should work, using a function to get the page numbers
Thank you Mr. gmayor

The code of Mr. Andrew works fine without any problem

I think you have a problem (Subscript out of range) with your code in the line:

Code:
 Selection.GoTo What:=wdGoToPage, which:=wdGoToAbsolute, Count:=Split(strPage, ",")(oCol(spliitem))
You can solve it, otherwise, ignore it and take your rest.

Thank you.
Reply With Quote