Forum Discussion

chancelin's avatar
chancelin
Copper Contributor
Dec 01, 2018

Debug.Print and Debug.WriteLine

Hello family

What's the difference between Debug.Print and Debug.WriteLine?

2 Replies

  • Haytham Amairah's avatar
    Haytham Amairah
    Silver Contributor

    Hi,

     

    There is no method in VBA called (Debug.WriteLine).

    In VBA, The Debug object has only two methods, .Print and .Assert.

    Please read this article.

     

    The Debug.WriteLine is part of .NET Framework and it can be used in .NET languages such as VB.NET and C#.

     

    You can say that the Debug.WriteLine is the .NET Framework equivalent method to the Debug.Print in VBA.

     

    Hope that make sense

    • chancelin's avatar
      chancelin
      Copper Contributor

      Thanks Haytham Amairah for your answer

Resources