-
btbs
AskWoody PlusI didn’t try to scale them or anything, just did a simple import to see if I could reduce the size of the file. Maybe it’s a windows vs mac issue that the ‘edit – delete’ process works for me but not you.
1 user thanked author for this post.
-
btbs
AskWoody PlusJulian,
I imported your ten markers into an excel file ‘TenMarkers Test orig.xlsx’ which saved at 108k size. I copied the file to ‘TenMarkers Test no png.xlsx’, used 7zip to ‘open archive’, navigated to xl\media folder, deleted all png files then closed/saved the file – this new file saved as size 16.8k.
When I opened ‘TenMarkers Test no png.xlsx’ excel didn’t report any errors and seemed to be fine.
You can get 7zip here: https://www.7-zip.org/download.html.
[EDIT] In you later post you said you’d compressed the png files. Don’t compress the png files, delete them and see how that goes before trying 7zip.
I know it’s still a work around to your issue but best I can do at the moment.
1 user thanked author for this post.
-
btbs
AskWoody PlusJulian, are you able to zip and share an example file for us to experiment with?
-
btbs
AskWoody PlusJulian, a couple of things you could try towards you’re second dot point/option…
Firstly, try AddPicture2 rather than AddPicture. It has a ‘compress’ option which you can set to ‘msoPictureCompressTrue’.
Secondly, and not ideal from many aspects, I’m assuming you’re using a modern excel file version (e.g. xlsx) in which case after the file is created you can open the file in your favourite zip editor (e.g. 7zip), navigate to xl\media then delete all the png files. In my testing this reduced the file size and didn’t kick up any errors when I re-opened the file.
If I come up with any other ideas I’ll post back here and I’d be interested in your feedback on how either of these options worked for you.
1 user thanked author for this post.
-
btbs
AskWoody PlusNovember 6, 2022 at 4:30 pm in reply to: How to solve “Run-time error 430: Class does not support automation “? #2495903That makes sense. At least you’ve got one method of making it work.
1 user thanked author for this post.
-
btbs
AskWoody PlusNovember 6, 2022 at 1:29 am in reply to: How to solve “Run-time error 430: Class does not support automation “? #2495664What error(s) are you getting and at what line are they occuring?
The only other thing I suggest is to step through the code line by line and check that everything is doing what you’d expect.
For example, you could add
Code:msgbox folder.Items().Count
immediately after the “Set Folder =
Outlook.Session.Folders(MailBoxName).Folders(“Inbox”).Folders(“BD_Invoice”)” line and check that is giving the number of messages in the BD_Invoice folder. -
btbs
AskWoody PlusNovember 4, 2022 at 5:23 pm in reply to: How to solve “Run-time error 430: Class does not support automation “? #2495211Shazzad,
See attached.
I’ve added a tab with the code in it for referencing purposes but you can delete that once you see what I’ve done. I created a BD_Invoice folder under my inbox and dumped a bunch of messages into it and the attached code worked for me.
Changes are:
- I deleted the loop as we know the direct path.
- I added a test at (new) line 34 to make sure the item is an email (.class = olMail) to ensure that we are not looking for a field that doesn’t exist.
See how the attached works for you.
-
btbs
AskWoody PlusNovember 4, 2022 at 4:41 pm in reply to: How to solve “Run-time error 430: Class does not support automation “? #2495197Pst_Folder_Name = “Inbox.BD_Invoice”
Ignore the previous suggestion.
As you know the folder you’re looking for use this:
Code:Folder = Outlook.Session.Folders(MailBoxName).Folders("inbox").Folders("BD_Invoice")
and delete/comment out everything between and including the line “‘To access a main folder or a subfolder (level-1)” to the “End if” before line “‘To access a main folder or a subfolder (level-1)”.
Rationale: you don’t need to loop through folders to find the one you want when you know the path to it.
Hopefully that helps.
-
btbs
AskWoody PlusNovember 4, 2022 at 4:34 pm in reply to: How to solve “Run-time error 430: Class does not support automation “? #2495194Try
Code:Pst_Folder_Name = "Inbox.BD_Invoice"
-
btbs
AskWoody PlusNovember 4, 2022 at 4:18 pm in reply to: How to solve “Run-time error 430: Class does not support automation “? #2495183@shazzad.arla,
You haven’t said whether you are placing this code in Excel or Outlook. From the looks of it you are putting it in Excel.
I think you are missing defining outlook, which you can do as follows:
Code:Dim Outlook As Outlook.Application Set Outlook = New Outlook.Application
See how that goes
-
btbs
AskWoody PlusI assume because it is local Outlook 365, all your emails are in a .pst file.
Can you provide a bit more info on what sort of export you want to do. For example, create a hierarchical folder structure that replicates your email folders with each folder containing each email as a .msg file? Or something else?
Does the export process need to be powershell or are you happy with an Outlook VBA solution?
[Edit] See here for examples of Powershell/Outlook integration: https://learn.microsoft.com/en-us/archive/msdn-magazine/2013/march/powershell-managing-an-outlook-mailbox-with-powershell
-
btbs
AskWoody PlusAugust 8, 2022 at 3:49 am in reply to: Populating values in a range based on inputs in another range? #2468405Try the following macro. Make sure InputTableStart and OutputTableStart are set to the first cell of the heading of each table.
Code:Sub ProduceOutputTable() Dim InputTableStart, OutputTableStart As String Dim NoCustomers, NoProducts, LoopCustomers, LoopProducts, Volume, OutputRow, NoOutputRows, NoOutputCols As Long 'Initialise - update to reflect your data InputTableStart = "A2" OutputTableStart = "H2" OutputRow = 0 'Clear output table but only if there is already data there If Range(OutputTableStart).Offset(1, 0) <> "" Then Range(Cells(Range(OutputTableStart).Row + 1, Range(OutputTableStart).Column), _ Cells(Range(OutputTableStart).End(xlDown).Row, Range(OutputTableStart).Column + 2)).Clear End If 'Determine number of customers and products NoCustomers = Range(InputTableStart).End(xlToRight).Column - Range(InputTableStart).Column NoProducts = Range(InputTableStart).End(xlDown).Row - Range(InputTableStart).Row For LoopCustomers = 1 To NoCustomers For LoopProducts = 1 To NoProducts Volume = Range(InputTableStart).Offset(LoopProducts, LoopCustomers) If Volume > 0 Then 'write output OutputRow = OutputRow + 1 Range(OutputTableStart).Offset(OutputRow, 0).Value2 = Range(InputTableStart).Offset(0, LoopCustomers).Value2 Range(OutputTableStart).Offset(OutputRow, 1).Value2 = Range(InputTableStart).Offset(LoopProducts, 0).Value2 Range(OutputTableStart).Offset(OutputRow, 2).Value2 = Range(InputTableStart).Offset(LoopProducts, LoopCustomers).Value2 End If Next 'LoopProducts Next 'LoopCustomers Range(OutputTableStart).Select MsgBox "Done." End Sub
-
btbs
AskWoody PlusAugust 1, 2022 at 4:05 am in reply to: Portable Text Encryption — Your super-secret decoder ring #2467011A very interesting app. As you know there are a large number of encryption algorithms available – are you able to advise which is best?
-
btbs
AskWoody PlusThere are a number of ways to do this.
The simplest way is to put the following formula into StudentList!B1
=IFERROR(MATCH(A1,PleaseRemoveMe!$A$1:$A$3,0),"")
This will give a blank if the student is not in the remove list or the row number that this student’s id is on if they are.Fill/drag that down over B1:B24. You can then filter for non-blanks in column B and delete those entries. Remove the filter and you’ll have your cleaned up list.
If it is something you will be doing repetitively, you can use a macro to automatically do it (using a different technique though). If the macro is the way you want to go, let us know.
-
btbs
AskWoody PlusGlad it worked.
I’d love to know what causes it as I’ve had it happen, probably only 2 or 3 times in a decade (not often I know). All seems good, using computer, shutdown but on restart the next morning the ‘temporary account’ issue occurs. It’s probably one of those things I’ll never get to the bottom of but at least I know how to fix it.
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Network Issue
by
Casey H
2 hours, 38 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
8 hours, 5 minutes ago -
May 2025 Office non-Security updates
by
PKCano
8 hours, 32 minutes ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
10 hours, 27 minutes ago -
pages print on restart (Win 11 23H2)
by
cyraxote
9 hours, 43 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
12 hours, 39 minutes ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
12 hours, 40 minutes ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
20 hours, 2 minutes ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
4 hours, 24 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
1 day, 7 hours ago -
How much I spent on the Mac mini
by
Will Fastie
6 hours, 48 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
1 hour, 58 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
1 day, 13 hours ago -
Setting up Windows 11
by
Susan Bradley
8 hours, 18 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
1 day, 8 hours ago -
Powershell version?
by
CWBillow
1 day, 9 hours ago -
SendTom Toys
by
CWBillow
6 hours, 9 minutes ago -
Add shortcut to taskbar?
by
CWBillow
1 day, 13 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 5 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 4 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
1 day, 11 hours ago -
We live in a simulation
by
Alex5723
2 days, 20 hours ago -
Netplwiz not working
by
RetiredGeek
2 days, 6 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
3 days, 8 hours ago -
Microsoft is killing Authenticator
by
Alex5723
10 hours, 18 minutes ago -
Downloads folder location
by
CWBillow
3 days, 14 hours ago -
Remove a User from Login screen
by
CWBillow
2 days, 10 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
3 days, 6 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
3 days, 6 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
1 day, 8 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.