Consulting

Results 1 to 5 of 5

Thread: Run time Error 438

  1. #1

    Run time Error 438

    Hello Dears , i Write this code and i get this error . could you please to help me . thank you

    photo_2018_12_11_23_47_01.jpg

  2. #2
    VBAX Newbie
    Joined
    Dec 2018
    Posts
    5
    Location
    Hello there

    Is it VB code, which you are using in VBA excel

    So the thing is Print isn't statement which you can use, you can tryout Cells(1, 1).Value for example.
    May be some other issues will come up, because of VB code. Need to check and not to retype everything.

    All the best

  3. #3
    VBAX Mentor 大灰狼1976's Avatar
    Joined
    Dec 2018
    Location
    SuZhou China
    Posts
    479
    Location
    pic.jpg
    you have to change (Print 1, "sk="; sk; "sp="; sp) to (debug.Print 1, "sk="; sk; "sp="; sp).
    then the result will be displayed at the immediate window like my posted picture.
    Last edited by 大灰狼1976; 12-13-2018 at 11:34 PM.

  4. #4
    Quote Originally Posted by Stohan View Post
    Hello there

    Is it VB code, which you are using in VBA excel

    So the thing is Print isn't statement which you can use, you can tryout Cells(1, 1).Value for example.
    May be some other issues will come up, because of VB code. Need to check and not to retype everything.

    All the best
    Thank You Sir .

  5. #5
    Quote Originally Posted by 大灰狼1976 View Post
    pic.jpg
    you have to change (Print 1, "sk="; sk; "sp="; sp) to (debug.Print 1, "sk="; sk; "sp="; sp).
    then the result will be displayed at the immediate window like my posted picture.
    Thank You Sir i will test it . Thanks a lot again
    Best Regards

Posting Permissions

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