Macro not working on Windows Server 2016

thviid

New Member
Joined
Jan 27, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Hi,

I have an excel sheet with macros working perfect on my local Windows 10 PC. Now I want to move the sheet to a Cloud computer running Windows Server 2016.

When running the macro on the cloud server i get an 1004 error.

Debug routes me to the attached section.

Anybody who has an idea how to fix?

Troels
 

Attachments

  • Screen Shot 2021-01-27 at 10.36.26.png
    Screen Shot 2021-01-27 at 10.36.26.png
    78.9 KB · Views: 37
  • Screen Shot 2021-01-27 at 10.36.17.png
    Screen Shot 2021-01-27 at 10.36.17.png
    26.7 KB · Views: 38
  • Screen Shot 2021-01-27 at 10.57.34.png
    Screen Shot 2021-01-27 at 10.57.34.png
    11.4 KB · Views: 38

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Do you have a default printer set up on the server? I seem to recall that ExportAsFixedFormat requires that for some reason.
 
Upvote 0
Solution
Do you have a default printer set up on the server? I seem to recall that ExportAsFixedFormat requires that for some reason.
Thanks a lot RoryA :)

That worked like a charm.

Troels
 
Upvote 0

Forum statistics

Threads
1,215,544
Messages
6,125,434
Members
449,223
Latest member
Narrian

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top