|
-
Jun 29th, 2006, 07:39 AM
#1
Thread Starter
Lively Member
[RESOLVED] msoFalse constant
I am coding the creation of a Word document in Access XP and the compiler is choking on the msoFalse constant....
VB Code:
.Selection.ShapeRange.ScaleWidth 0.37, msoFalse, msoScaleFromTopLeft
because it is not defined.
Just keep my code clean, I want to fix this. I believe the soluction is just to figure out what the parent object of the constant is. However, I am having trouble finding it.
Anyone know or have an alternate solution?
-
Jun 29th, 2006, 11:46 AM
#2
Re: msoFalse constant
did you add the reference to MS Word? or are u using createobject("Word....?
if u add the reference access will know what mso is.. if u dont want to (so its more compatable) then do this:
open Word
Hit ALT+F11
then Hit F2
That should bring up the object browser
in the search box (Second combo down - top left)
type msoFalse
it will bring up the msoFalse ... look in the lower left you will see:
Const msoFalse = 0
there is your value..
go back to access and add that into a module
repeat for any others like
Const msoScaleFromTopLeft = 0
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jun 30th, 2006, 09:28 AM
#3
Thread Starter
Lively Member
Re: msoFalse constant
Thanks Static,
Didn't even think of using the objects brower to find that out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|