It workd! You saved my day.
Type: Posts; User: peccora3
It workd! You saved my day.
How do I create a new custom layout to master layout using VBA?
I can add new master designs with designs.add, but I cannot seem to find a way to add a new layout to the design.
Thank you for your helpful suggestions. I have since tested with other PCs and found that this problem occurs only on one particular PC. So it must be some error on the side of the PC, not the code...
Thanks to your remark, I tested further and found the cause. It was not the SetWindowPos, but because I wrongly declared the FindWindow API. Now, it's working fine on Powerpoint 2013-Windows 8.
But...
I have created a modeless UserForm in Powerpoint 2013 vba in Windows 8 which displays while the user to perform a certain task in Excel and then press OK.
When the user switches the program to...
This worked perfectly.
Tank you very much!
Thank you for your quick answer.
Your script works fine in Excel vba.
Now, I need to run this script from Powerpoint, and either of the scripts returns 0.
Following is what I have written for...
Hello,
In previous Excel vba, I used "application.windows.count" to check how many Excel files are open.
However, in Excel 2013, this script returns 1 no matter how many files are open.
What vba...