I have the problem that Word has the property VerticalPercentScrolled, which is an integer that causes issues in files having pages greater than 200.

Ajay Pandirkar 1 Reputation point
2022-11-14T14:05:43.833+00:00

The word has the property VerticalPercentScrolled, which is an integer. This isn’t as accurate as I need it to be, considering a Word Document with 300 pages and the scrollbar can only have an integer between 0 - 100 (percent)

So, is it possible to get 5.442248572683356(Decimal) instead of 5 (Integer)?

Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
897 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stefan Blom 2,091 Reputation points MVP
    2022-11-15T00:23:46.07+00:00

    The data type for the VerticalPercentScrolled property is Long which does not allow you to specify decimals (see https://learn.microsoft.com/en-us/office/vba/api/word.window.verticalpercentscrolled).

    Please explain more in detail what you are trying to accomplish, and someone may be able to suggest a different approach.