Macro For Applying Bitmap Pattern Fills

I'm trying to create a macro to apply my custom bitmap pattern fill.

I found this https://community.coreldraw.com/sdk/api/draw/18/m/fill.applypatternfill but when I use the example macro and change the path to my custom .fill file, I get an error that it failed to load.



Sub Test()
  Dim s As Shape
  Set s = ActiveLayer.CreateRectangle(0, 0, 5, 5)
  s.Fill.ApplyPatternFill cdrBitmapPattern, "C:\Users\jchestnut\Documents\Corel\Corel Content\Fills\CoolerWrap Wood 1.fill"
End Sub