help with code 
Author Message
 help with code

im trying to set the timeline via code in the active
project but im a little unsire about the syntax. this is
what i have:

ActiveProject.Application.Timescale =

i need to set the timescale to years/months



Sun, 27 Mar 2005 02:01:13 GMT  
 help with code
The best way to understand the syntax is to start the macro recorder.
Perform the resizing the way you want it. Stop the recorder and then look at
the resulting code

--
Please try to keep replies in this group. I do check e-mail, but only
infrequently.
For Macros and other things check http://masamiki.com/project

-Jack Dahlgren, Project MVP

+++++++++++++++++++

Quote:
> im trying to set the timeline via code in the active
> project but im a little unsire about the syntax. this is
> what i have:

> ActiveProject.Application.Timescale =

> i need to set the timescale to years/months



Sun, 27 Mar 2005 06:47:52 GMT  
 help with code
Brent,
This is probably what you want:
Application.TimescaleEdit majorunits:=pjTimescaleYears,
minorunits:=pjTimescaleMonths, majorlabel:=pjYear_yyyy,
minorlabel:=pjMonth_mmm, _
    majorcount:=1, minorcount:=1, majorticks:=True, minorticks:=True

This syntax can be found in the VBA object browser help file.

HTH
John



Sun, 27 Mar 2005 14:07:06 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. HELP Error code 2244 & Error code 2465

2. Help with code to pull up .chm help file

3. FAO: Graham Mandeno - Or Anyone Can Help - Reusable Code

4. Help modify code for time format

5. Help with code

6. Help writing code

7. Need Help on Coding Syntax

8. Needed help for coding

9. Help with code

10. Help Writing Code/Module For An Excel Function

11. Help Optimizing Code

12. Help Using code in www.mvps.org API CALL to hide Access 97

 

 
Powered by phpBB® Forum Software