You cannot compact the open database by running a macro or Visual Basic code.@Instead of using a macro or code, click the ...