How to use Loc function in VBA?
In VBA (Visual Basic for Applications), the Loc function is used to obtain the current read/write position within an open file. This is most often used when you are working with files in a binary mode, as Loc will return the position as the number of bytes from the start of the file