Activeworkbook faulty in 2013

jstiene

Board Regular
Joined
Aug 5, 2005
Messages
223
I have float over tools that used to open and work with a keystroke based on the active workbook, but in Excel 2013 it is unpredictable.
In the backend activeworkbook may not be the last workbook you were looking at because of this multiple ap focus nonsense. Is there a workaround anyone knows of? Like

activewindow. activeworkbook.name?

IE if I am looking at Jan sales and hit a keystroke to open a form from a hidden utility, it may or may not switch to Feb sales or some other unrelated workbook.
If I am looking at Jan Sales, a floatover form should do just that. Float over whatever was visible when hit. This is screwing up other things Ive seen.
Code people wrote expecting activeworkbook to mean something it no longer means. Anyone know a workaround in VBA, that's not 300 lines of C# or shell scripting?

Is there one line of code to replace activeworkbook.name in Excel 2013?
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,216,473
Messages
6,130,838
Members
449,597
Latest member
buikhanhsang

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