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

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.
907 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stefan Blom 2,141 Reputation points MVP

    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.