Hi
You should not think of it as …. combine Alan code into muhammad code … that wont work. That’s wrong.
Correct is: combine muhammad code into Alan code
__Do While
__Dim FullPathAndFileName As String
__ Let FullPathAndFileName = Path & "" & FileName
___ muhammad code here
__Loop
That is a looping code section. It is done 2 times if you have two files, 3 times if you have three file, 4 times if you have 4 files, 5 times if you have 5 files, 6 times ……….etc.
Each time it is done, my FullPathAndFileName = your vPicture
In my example it would have looped 2 times because I had two files in my folder, Picture Example Folder, ( https://i.postimg.cc/7b8WngcR/Pictur...My-Desktop.jpg )
I do not think it is possible to explain this any easier. That is very very simple and most very basic looping programming understanding.
But I cannot tell you exactly what coding to put here, because I do not know how to do coding that involves inserting pictures. I have no experience inserting pictures.
Somebody else will need to help you if you are unable yourself to proceed further.
( For somebody else to help you, it might be easier for them to help you if you explain in more full detail of your requirements and include some sample files )
Alan
P.S. You have been doing macro for at least 9 years already . I have been doing macros for 6 years only. So I am super newbie![]()





Reply With Quote
Bookmarks