Mike Eghtebas
asked on
Read Frame properties... VBA
Question: What is the syntax to read the properties of a frame?
(Please verify and fill in the missing.)
ActiveDocument.Frames(intF rmCount).S elect
PageNoVal = ActiveDocument.Frames(intF rmCount).R ange.Infor mation(wdA ctiveEndPa geNumber)
PagesVal = ?
LeftVal = ?
TopVal = ActiveDocument.Frames(intF rmCount).V erticalPos ition
FontSizeVal = Selection.Font.Size
FontTypeVal = ?
BoldYNVal = ?
ItalicYNVal = ?
UnderLineYNVal = ?
FrameWidthVal = ActiveDocument.Frames(intF rmCount).W idth
FrameHeightVal = ActiveDocument.Frames(intF rmCount).H eight
TextColorVal = ?
strVal= ActiveDocument.Frames(intF rmCount).R ange.Text
Thank you.
(Please verify and fill in the missing.)
ActiveDocument.Frames(intF
PageNoVal = ActiveDocument.Frames(intF
PagesVal = ?
LeftVal = ?
TopVal = ActiveDocument.Frames(intF
FontSizeVal = Selection.Font.Size
FontTypeVal = ?
BoldYNVal = ?
ItalicYNVal = ?
UnderLineYNVal = ?
FrameWidthVal = ActiveDocument.Frames(intF
FrameHeightVal = ActiveDocument.Frames(intF
TextColorVal = ?
strVal= ActiveDocument.Frames(intF
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
re:> PagesVal = <= Unsure of what you are looking for here please add more info
This relates to total pages.
This relates to total pages.
Sub PageCount()
MsgBox ActiveDocument.ComputeStat istics(Sta tistic:=wd StatisticP ages)
PagesVal = ActiveDocument.ComputeStat istics(Sta tistic:=wd StatisticP ages)
End Sub
MsgBox ActiveDocument.ComputeStat
PagesVal = ActiveDocument.ComputeStat
End Sub
ASKER
Following works:
PageNoVal = ActiveDocument.ComputeStat istics(Sta tistic:=wd StatisticP ages)
PagesVal = ActiveDocument.Frames(intF rmCount).R ange.Infor mation(wdA ctiveEndPa geNumber)
Thanks,
Mike
PageNoVal = ActiveDocument.ComputeStat
PagesVal = ActiveDocument.Frames(intF
Thanks,
Mike
ASKER
Hi geneus,
I have a follow up question at:
https://www.experts-exchange.com/questions/22872661/Frame-Location-VBA.html
Thanks,
Mike
I have a follow up question at:
https://www.experts-exchange.com/questions/22872661/Frame-Location-VBA.html
Thanks,
Mike
ASKER