0
나는 고대 코드를 찾고 코드의 다음 줄이 있습니다 :함수에서 변수를 다시 전달 하시겠습니까?
strResult = strResult + "<table>" & vbLf
output = PrintTableHead("Field Office Code","1")
strResult = strResult + PrintTableHead("Field Office Code","1")
strResult = strResult + "<tr>" & vbLf
Function PrintTableHead(TheTitle , TheColSpan)
strResult = "<tr><th colspan="
strResult = strResult + TheColSpan
strResult = strResult + " BGCOLOR=""#004D95"" align=center>" & vbLf
strResult = strResult + "<font face=""Time New Roman"" color=""#ffffff"" SIZE=3>" & vbLf
strResult = strResult + TheTitle
strResult = strResult + "</font></th></tr>" & vbLf
End Function
내가 strResult을 디버깅하려고합니다. pIrntTableHead 함수의 내용을 추가하지 않습니다. 왜이게 효과가 없습니까? 어떻게 올바르게 추가 할 수 있습니까?
그렇게 strResult = strResult + "<tr>" & vbLf
후 strResult의 값은 여전히 :
"table><tr>"
감사합니다! 전에 "Return strResult"를 시도했지만 오류가 발생했습니다. 내가 한 번 시험해 보자! 추신. 그것은 일했다 :) 감사합니다! –
그걸 다 판다면 다행이야. –