Results 1 to 5 of 5

Thread: [RESOLVED] object value set to nothing

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2008
    Posts
    167

    Resolved [RESOLVED] object value set to nothing

    IT gives error
    object value set to nothing what is wrong

    MyScreen.Area(1,10,1,14).Value = Trim(aSheet.Cells(4, "e"))

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Mar 2008
    Posts
    167

    Re: object value set to nothing

    i have in cell 4 e has ABCD BUT SPACES BEFORE A AND AFTER.
    I TRIED BELOW THE CODE
    BUT STILL I HGOT object value set to nothing

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2008
    Posts
    167

    Re: object value set to nothing

    Westconn
    why it is coming error in the
    MyScreen.Area(1,10,1,14).Value = Trim(aSheet.Cells(4, "e"))
    what is the problem in that
    before this code i have len statiment

  4. #4
    Lively Member
    Join Date
    May 2007
    Posts
    70

    Talking Re: object value set to nothing

    Quote Originally Posted by india123
    Westconn
    why it is coming error in the
    MyScreen.Area(1,10,1,14).Value = Trim(aSheet.Cells(4, "e"))
    what is the problem in that
    before this code i have len statiment
    Hi there.

    when referencing cells in excel from VBA there are two conventions -

    asheet.cells(4,5).value

    or

    asheet.range("e4").value

    You are mixing the two conventions and this is probably the reason it doesn't work.

    hope this helps
    Cheers

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2008
    Posts
    167

    Re: object value set to nothing

    Still the same problem it is not resolved
    MyScreen.Area(1,10,1,5).Value = aSheet.range("e4").value

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