Hello,The following code generates a Run-time error (13) Type mismatch:
I checked in Immediate window with Debug.? and got "Compile error:Invalid watch expression". Result of these procedure shoul be long (number 10).
What am I doing wrong?
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">I checked Debug.? in Immediate window and gives me "Compile error:Invalid watch expression.</body>
Code:
[/FONT][/COLOR]
[COLOR=#006600][FONT=Courier]Dim IloscWierszy As Long [/FONT][/COLOR]
[COLOR=#006600][FONT=Courier]IloscWierszy = Application.VLookup(.Cells(i, 2).Value, _ [/FONT][/COLOR]
[COLOR=#006600][FONT=Courier]"'[" & PlikBudżet.Name & "]" & PlikBudżet_arkusz.Name & "'!R" & WierszKosztyPensji_Budzet + 2 _ [/FONT][/COLOR]
[COLOR=#006600][FONT=Courier]& "C" & OstKol_Budzet & ":R" & WierszKosztyPracowni_Budzet - 2 & "C" & OstKol_Budzet + 1, 2, 0)
[/FONT][/COLOR]
I checked in Immediate window with Debug.? and got "Compile error:Invalid watch expression". Result of these procedure shoul be long (number 10).
What am I doing wrong?
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">I checked Debug.? in Immediate window and gives me "Compile error:Invalid watch expression.</body>