As mentioned in the comments, it's better to include the extension when you name the file. In your case:
51 is for Open XML Workbook (*.xlsx)
52 is for Open XML Workbook With Macros Enabled (*.xlsm)
For all the possible file types, you can have a look at the XlFileFormat Enumeration page on the MSDN.
Additionally, as mentioned by Jeeped, if you are saving on a Windows location, the extension in the filename is not absolutely necessary since it should default automatically to the extensions mentioned above. Now, from the style of filename that you are using, I guess that you are saving the file to a remote Unix location which is probably why the extension is not added automatically. It should be different if you were saving on your desktop.
FilNam = "//drive/folder/Test.xlsx"
orFilNam = "//drive/folder/Test.xlsm"
. I forgot which type is 51 v 52 off hand. Basically include extension.