I see. So do you want the _Window menu option to expand if the user
responds "Yes" to the message box that asks "Is today's log file
open?", or do you want something similar to the open file dialog box
to appear?
On Aug 29, 7:06 am, etradeg...@hotmail.com wrote:
> I see. So do you want the _Window menu option to expand if the user
> responds "Yes" to the message box that asks "Is today's log file
[quoted text clipped - 55 lines]
>
> - Show quoted text -
Jason,
I have got around the issue using
Workbooks(2).Activate
which assumes that Pesronal.xls =1 and that the next workbook is the
one you want..
That is not really useful if the order is changed and the workbook you
want is not number 2.
What I want is what you refer to, something akin to the open file
dialog, or just being able to activate the Window dropdown list and
allow the user to select from the list. The equivalent to and [alt]+
[W] key combo.
If you record a macro using the key combo it doesnt register the key
strokes, just the result hardcoding the filename, which I dont want
because the filename changes everyday.
Does that explain?
Mark
Jason - 07 Sep 2007 15:01 GMT
Mark,
I apologize for the delay. Without making a new form, I think the
easiest way to do this is to use the sendkeys statement. The line in
your vba code would like like this:
SendKeys "%w"
The "%" represents the [alt] key, so this should just expand the
Window dropdown from the main toolbar.
Hope this helps.
On Aug 31, 5:05 am, etradeg...@hotmail.com wrote:
> > I see. So do you want the _Window menu option to expand if the user
> > responds "Yes" to the message box that asks "Is today's log file
[quoted text clipped - 77 lines]
>
> Mark