Solved

Easy Easy Points

Posted on 2000-04-04
3
160 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
Comment Utility
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
Comment Utility
Or off course
funtimes = Selection.Range.Information(wdActiveEndPageNumber)

and

funtimes = Selection.Information(wdActiveEndPageNumber)

Calacuccia
0
 

Author Comment

by:saksafon2
Comment Utility
Thanks.  I think I understand whats up now.

lets see!

rick
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now