Width of dialog box etc

azizrasul

Well-known Member
Joined
Jul 7, 2003
Messages
1,304
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
If I have a list of workbook names in a worksheet with their full pathnames and 2 additional columns with the headings 'Main Password' and 'Write Access Password'. By iterating through the workbooks, I want to establish that when using the Workbooks.Open and either the 'Main Password' and\or 'Write Access Password' dialog boxes open I want to find the length of the Password dialog boxes which will tell me whether the 'Main Password' or 'Write Access Password' dialog box is open as the 'Write Access Password' dialog box is wider than the 'Main Password'.

Alternatively if the code tells me whether there is a 'Read Only' button on the dialog box that is open then I can tell which dialog box is open.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
If I have a list of workbook names in a worksheet with their full pathnames and 2 additional columns with the headings 'Main Password' and 'Write Access Password'. By iterating through the workbooks, I want to establish that when using the Workbooks.Open and either the 'Main Password' and\or 'Write Access Password' dialog boxes open I want to find the length of the Password dialog boxes which will tell me whether the 'Main Password' or 'Write Access Password' dialog box is open as the 'Write Access Password' dialog box is wider than the 'Main Password'.

Alternatively if the code tells me whether there is a 'Read Only' button on the dialog box that is open then I can tell which dialog box is open.
Sorry I realise that the widths are the same. So the presence of a Read Only button will do what I want.
 
Upvote 0

Forum statistics

Threads
1,214,986
Messages
6,122,611
Members
449,090
Latest member
vivek chauhan

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