ExportAsFixedFormat in excel

michael coltart 0 Reputation points
2025-07-02T14:31:12+00:00

I have a Excel workbook with vba macros, it was developed using windows 10. I am in the process of transferring to windows 11 on a new laptop. Some of my macros fail in win 11. An example is ExportAsFixedFormat in this case to PDF. The macros still work on my old laptop. The data is in the cloud (onedrive) so it's not the data. I subscribe to 365 so all my software and OSs are up to date. Has anyone had a similar experience.

Microsoft 365 and Office | Excel | For business | Windows
{count} votes

2 answers

Sort by: Most helpful
  1. michael coltart 0 Reputation points
    2025-07-04T17:02:47.2566667+00:00

    Thank you Jan. Do you mean the variables Type, Filename etc? If so I can't see how they can be different. There is only one macro being used as the workbook is on OneDrive, I am not using local files so both laptops are running the same macros. if otherwise please advise.

    0 comments No comments

  2. michael coltart 0 Reputation points
    2025-07-04T17:07:04.75+00:00

    Thank you Jan. Do you mean the variables Type, Filename etc? If so I can't see how they can be different. There is only one macro being used as the workbook is on OneDrive, I am not using local files so both laptops are running the same macros. if otherwise please advise.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.