Consulting

Results 1 to 2 of 2

Thread: Calling Function from Module to Form got an error Variable not set

  1. #1

    Calling Function from Module to Form got an error Variable not set

    just want to know what I missed with these. I'm calling sub from mainwindow

    in MainWindow Form

    Public Sub ChangeData()
           msgbox("Ok")
    End Sub

    in Module

    Sub PrintIntercept()
           Mainwindow.ChangeData  '------> Here it says that Object variable or With block variable not set
    End Sub

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,812
    Location
    bump
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

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