Saving Chart as image using VBA not working when pc is locked

dpope10

New Member
Joined
Feb 25, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hey all.
I am currently weiting a program that automatically runs at 6am using task scheduler.
It is to make a range of data from sheet 1 and save it as an image (i am currently doing this with the chart.add method).
I have found that it works fine when I am logged into my username.
What i am finding is when i have locked my pc (still logged in), when tasl scheduler runs the code is is saving a blank chart and is not putting the required image into the chart canvas.
Does anyone know why this is or if there is a work around ?
Apologies if this is a known issue, i am quite new to this forum and have been training in VBA for 8 months.
Thanks for any help
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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