so_simple Posted November 12, 2009 at 04:19 PM Report Share #295841 Posted November 12, 2009 at 04:19 PM Estou a fazer um trabalho em excel com VB e andei a procura de como ler e escrever ficheiros e tenho dúvidas de como leio inteiros escritos em ficheiros binários Link to comment Share on other sites More sharing options...
FreiNando Posted November 12, 2009 at 10:41 PM Report Share #295933 Posted November 12, 2009 at 10:41 PM Em Excell Pode usar a seguinte função: Function LerINT(Ficheiro, Pos) As Integer Dim n As Integer If Dir(Ficheiro) = "" Then Exit Function If Pos > FileLen(Ficheiro) Then Exit Function n = FreeFile Open FicheiroFor Binary As n Get n, Pos, LerINT Close n End Function E colocar como formula nalguma celula. O caminho mais curto para conseguir fazer muitas coisas é fazer uma de cada vez. Samuel Smiles Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now