How to Use the Shell Automation Library in VBA | Part 1

How to Use the Shell Automation Library in VBA | Part 1

Sigma Coding

5 лет назад

16,989 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@dildokafir5058
@dildokafir5058 - 19.06.2019 05:09

Thanku sigma coding...love you

Ответить
@dildokafir5058
@dildokafir5058 - 19.06.2019 05:45

Thank you for the beautiful code.

There is a requirement like creating folders on daily basis naming them with current date n month. But the issue is everything day I need to collate data in Excel from different sources (may be 50 or so) and flash them to management keeping segregated regional folders n at the same time I need to attach bunch of Excel files which is awkward.. is there any way to zip those files using VBA script before sending them.

That will be very helpful to me.

I know you are genius you can do it..

Also pardon me if I am expecting more from you..

Thank you in advance

Ответить
@marcelitosweb
@marcelitosweb - 20.06.2019 00:35

Does the ShellExecute method wait until the called script has ended executing to move on with the program? I've been using the default vba shell command and that's an annoying issue I have. Obviously I can put an application.wait after it, but that's just a workaround.



Thanks.

Ответить
@dildokafir5058
@dildokafir5058 - 28.06.2019 13:37

Hi, is there a way to create zip folder using vba. .i need to have many excel files in them

Ответить
@KhalilYasser
@KhalilYasser - 20.12.2019 11:30

Thanks a lot. The link to Github seems to be broken. Can you provide with the code please?

Ответить
@lautarob
@lautarob - 30.12.2019 04:53

Thank you!
Sorry, but the link is broke. Further, the content for the .py file is needed.

Ответить
@evanrudibaugh8772
@evanrudibaugh8772 - 30.10.2020 07:46

Hey: how do you handle namespace with variable inputs?
Set objFolder = shellObj.namespace("C:\ExampleFolder") will work fine for me, but if I have something like
folderName = "C:\ExampleFolder"
Set objFolder = shellObj.namespace(folderName)
I end up with errors.

Ответить
@danielkrajnik3817
@danielkrajnik3817 - 20.12.2020 14:53

wow, this actually looks really useful

Ответить
@firstcommenter202
@firstcommenter202 - 05.06.2021 16:17

File System Objects can do the folders

Ответить
@kabukijoe99
@kabukijoe99 - 25.01.2022 20:14

good lesson

Ответить
@Matt-zp9jg
@Matt-zp9jg - 23.04.2023 17:21

Is part two coming soon?

Ответить
@H-do8tr
@H-do8tr - 29.09.2023 16:52

GREAT! How Can I export the first four sheets of the workbook as PDF and export another word file in the same folder then export the rest of sheets. All these exported should be merged in one PDF in that order

Ответить
@ganeshs1360
@ganeshs1360 - 23.11.2023 04:34

i have a scenario where i need to write file properties like Tags and Comments to any file type. Is there a way i can do this using Shell32?

Ответить