Project VBA Question

J

Julio Baixauli

Hi.

In VBA for MS Project, the function TimescaleEdit is used to change the
settings of the timescale:

Dim percentage
percentage=100 '100%
TimescaleEdit Enlarge:=percentage

I would like to know the function I have to use to get the actual
Timescale_Enlarge setting. I was looking for it long time, but I have not
found it.

Thankyou!
 
J

Jan De Messemaeker

Hi,

AFAIK Timescaleedit is (as so many methods in Project VBA) "write only". You
cannot read these properties.
 
J

Jack Dahlgren

Jan is correct. Many of the elements of the user interface can be set but
not read.
Set it the way you want.


-Jack Dahlgren
 
J

Julio Baixauli

Thank you, Jack and Jan. I've posted the question in developers group, we can
continue this post there.

Jack, the way I want to change the Timescale Enlarge setting is increase it
in 10% each time the macro is executed. So, if the actual Enlarge is 100%, I
would like to set it to 110%... Any idea? Thank you!

Julio.
 
J

Jack Dahlgren

As I said, all you can do is set the value.
You could set it at 100% to begin with and then go on from there, but you
will never be able to know what the original state was.
You could use the zoom function...

-Jack Dahlgren
 
J

Julio Baixauli

Thank you, Jack.



Jack Dahlgren said:
As I said, all you can do is set the value.
You could set it at 100% to begin with and then go on from there, but you
will never be able to know what the original state was.
You could use the zoom function...

-Jack Dahlgren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top