title: Is it possible to host a webserver in VBA?
body: <p>I want to host a web server and want to use VBA to do it. Is this possible? I'm just doing this to prove someone wrong and really want to make this program.</p>
  
  <p>So is it possible to make a really simple web server (just listens for get requests)? Help would be very much appreciated.</p>
  
  <p><strong>EDIT</strong> </p>
  
  <p>I'm trying something like this </p>
  
  <pre><code>Sub startServer()
      Set wunsock = CreateObject("OSWINSCK.Winsock")
      wunsock.LocalPort = 80
      wunsock.Listen
  End Sub
  
  Sub wunsock_ConnectionRequest(ByVal requestID As Long)
      If sockMain.State &lt;&gt; sckClosed Then
          sockMain.Close
      End If
      sockMain.Accept requestID
  End Sub
  
  Private Sub wunsock_DataArrival(ByVal bytesTotal As Long)
      Dim strData As String
      sockMain.GetData strData, vbString
      txtStatus.Text = txtStatus.Text &amp; _
          strData &amp; vbCrLf
  End Sub
  </code></pre>
  
  <p>However it doesn't work? </p>