Solved

Easy Easy Points

Posted on 2000-04-04
3
164 Views
Last Modified: 2010-05-02
funtimes = Selection.Range.Information.ActiveEndPageNumber

What I'm trying to do in MS-Word VB is set the current page number to a variable.  Ideas?

-rick
0
Comment
Question by:saksafon2
3 Comments
 
LVL 3

Accepted Solution

by:
ashunigam earned 25 total points
ID: 2685367
Dear Rick
Everything is write but u did a small mistake i.e. u tried to pass parameter as a method:

funtimes=MsgBox Selection.Information(wdActiveEndPageNumber)

It will give u current page number.

Regards
Ashutosh nigam
0
 
LVL 17

Expert Comment

by:calacuccia
ID: 2685943
Or off course
funtimes = Selection.Range.Information(wdActiveEndPageNumber)

and

funtimes = Selection.Information(wdActiveEndPageNumber)

Calacuccia
0
 

Author Comment

by:saksafon2
ID: 2686885
Thanks.  I think I understand whats up now.

lets see!

rick
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question