+ Reply to Thread
Results 1 to 4 of 4

Excel - VBA - Compile error: invalid use of property

  1. #1
    Registered User
    Join Date
    12-17-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Excel - VBA - Compile error: invalid use of property

    Hi i am trying to repair an excel/ vba code that was written by someone else previously. When i try to run or debug the code i receive " compile error: Invalid use of proptery". I could really use your help. Thanks in adavance - Here is the coded section


    Private Sub UserForm_Initialize()
    txtRequestor.Text = CurrentUser
    If txtRequestor.Text <> "<Enter Your Name Here>" Then
    txtRequestor.Enabled = False
    End If
    txtReqNum.Text = "SR" & RequestNumber
    Version 5#
    Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
    Begin VB.Form frmCalendar
    BorderStyle = 0 'None
    ClientHeight = 4785
    ClientLeft = 0
    ClientTop = 0
    ClientWidth = 4200
    LinkTopic = "Form1"
    Picture = "frmCalendar.frx":0000
    ScaleHeight = 4785
    ScaleWidth = 4200
    ShowInTaskbar = 0 'False
    StartUpPosition = 3 'Windows Default
    Begin VB.PictureBox picBtnNothing
    Appearance = 0 'Flat
    AutoSize = -1 'True
    BackColor = &H80000005
    BorderStyle = 0 'None
    ForeColor = &H80000008
    Height = 135
    Left = 70
    Picture = "frmCalendar.frx":416FA
    ScaleHeight = 9
    ScaleMode = 3 'Pixel
    ScaleWidth = 9
    TabIndex = 6
    Top = 40
    Width = 135
    End
    Last edited by Ladynerd; 12-20-2012 at 11:04 AM.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Excel - VBA - Compile error: invalid use of property

    that's not really code-it's a garbled version of vba and the contents of an exported .frm file
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    12-17-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel - VBA - Compile error: invalid use of property

    Help needed. Please.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-17-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel - VBA - Compile error: invalid use of property

    Ok , well thanks for your quick response. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1