Results 1 to 14 of 14

Thread: [RESOLVED] Invalid use of property

Hybrid View

  1. #1
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Invalid use of property

    VB Code:
    1. Private Sub mnuLabelFontStyleBoldItalic_Click()
    2.     With lblText(m_intControlIndex)
    3.         .Font.Bold = Not .Font.Bold
    4.         .Font.Italic = [b].Font.Bold [/b]
    5.     End With
    6. End Sub

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Invalid use of property

    Quote Originally Posted by Joacim Andersson
    VB Code:
    1. Private Sub mnuLabelFontStyleBoldItalic_Click()
    2.     With lblText(m_intControlIndex)
    3.         .Font.Bold = Not .Font.Bold
    4.         .Font.Italic = [b].Font.Bold [/b]
    5.     End With
    6. End Sub
    .font.bold would be referencing the top line?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width