Click here to Skip to main content
15,925,602 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Time Pin
Colin Angus Mackay31-May-05 0:37
Colin Angus Mackay31-May-05 0:37 
Generaltry this Pin
hakanaktan31-May-05 0:41
hakanaktan31-May-05 0:41 
GeneralRe: try this Pin
Colin Angus Mackay31-May-05 0:45
Colin Angus Mackay31-May-05 0:45 
Generalopps sorry Pin
hakanaktan31-May-05 1:01
hakanaktan31-May-05 1:01 
GeneralRe: opps sorry Pin
Colin Angus Mackay31-May-05 1:35
Colin Angus Mackay31-May-05 1:35 
Generalyes you are right Pin
hakanaktan31-May-05 3:38
hakanaktan31-May-05 3:38 
GeneralThe way to count the No. of pages in ms word's Pin
IvanChang30-May-05 20:58
IvanChang30-May-05 20:58 
GeneralRe: The way to count the No. of pages in ms word's Pin
Duncan Edwards Jones31-May-05 0:31
professionalDuncan Edwards Jones31-May-05 0:31 
Try
<br />
Function GetBuiltInProperty(objDoc As Object, _<br />
                            strPropname As String) As Variant<br />
<br />
   ' This procedure returns the value of the built-in document<br />
   ' property specified in the strPropName argument for the Office<br />
   ' document object specified in the objDoc argument.<br />
<br />
   Dim prpDocProp       As DocumentProperty<br />
   Dim varValue         As Variant<br />
   <br />
   Const ERR_BADPROPERTY      As Long = 5<br />
   Const ERR_BADDOCOBJ        As Long = 438<br />
   Const ERR_BADCONTEXT       As Long = -2147467259<br />
   <br />
   On Error GoTo GetBuiltInProp_Err<br />
   <br />
   Set prpDocProp = objDoc.BuiltInDocumentProperties(strPropname)<br />
   With prpDocProp<br />
      varValue = .Value<br />
      If Len(varValue) <> 0 Then<br />
         GetBuiltInProperty = varValue<br />
      Else<br />
         GetBuiltInProperty = "Property does not currently have a value set."<br />
      End If<br />
   End With<br />
   <br />
GetBuiltInProp_End:<br />
   Exit Function<br />
GetBuiltInProp_Err:<br />
   Select Case Err.Number<br />
      Case ERR_BADDOCOBJ<br />
         GetBuiltInProperty = "Object does not support BuiltInProperties."<br />
      Case ERR_BADPROPERTY<br />
         GetBuiltInProperty = "Property not in collection."<br />
      Case ERR_BADCONTEXT<br />
         GetBuiltInProperty = "Value not available in this context."<br />
      Case Else<br />
   End Select<br />
   Resume GetBuiltInProp_End:<br />
End Function<br />


Try the "Pages" property.


'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
GeneralIE plug-in Pin
mandrake_230-May-05 20:58
mandrake_230-May-05 20:58 
GeneralOutlook problem Pin
dw192830-May-05 20:45
dw192830-May-05 20:45 
GeneralRe: Outlook problem Pin
S. Senthil Kumar30-May-05 21:23
S. Senthil Kumar30-May-05 21:23 
GeneralRe: Outlook problem Pin
dw192831-May-05 17:21
dw192831-May-05 17:21 
GeneralRe: Outlook problem Pin
S. Senthil Kumar1-Jun-05 3:12
S. Senthil Kumar1-Jun-05 3:12 
GeneralCrystal Reports Progress Dialog box. Pin
Nic Rowan30-May-05 20:25
Nic Rowan30-May-05 20:25 
GeneralVisual Basic Pin
Member 158672030-May-05 17:41
Member 158672030-May-05 17:41 
GeneralRe: Visual Basic Pin
Christian Graus30-May-05 17:48
protectorChristian Graus30-May-05 17:48 
GeneralRe: Visual Basic Pin
Member 158672030-May-05 18:07
Member 158672030-May-05 18:07 
GeneralRe: Visual Basic Pin
Christian Graus31-May-05 10:56
protectorChristian Graus31-May-05 10:56 
GeneralDeployment Question Pin
Binary011030-May-05 15:50
Binary011030-May-05 15:50 
GeneralWeird Problem Pin
Anonymous30-May-05 9:59
Anonymous30-May-05 9:59 
GeneralRe: Weird Problem Pin
Christian Graus30-May-05 14:35
protectorChristian Graus30-May-05 14:35 
GeneralRe: Weird Problem Pin
Anonymous30-May-05 15:08
Anonymous30-May-05 15:08 
GeneralRe: Weird Problem Pin
Christian Graus30-May-05 15:37
protectorChristian Graus30-May-05 15:37 
GeneralSending Mail in VB 6.0 Pin
e_screw30-May-05 6:19
e_screw30-May-05 6:19 
GeneralRe: Sending Mail in VB 6.0 Pin
macca2430-May-05 22:36
macca2430-May-05 22:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.