Not sure how many of you have started playing with Vista and Office 07. I ran into a problem and hoping someone may have a solution.
I have 2 TV's running off of 1 computer. I want to run 2 Excel files (one on each TV). My objective was to have a userform on one of the Excel files that will control both Excel files, allowing the user to flip through graphs on either TV by using 1 UserForm.
Both Excel files are the same (just with different names) so the UserForm can easily adjust to both files. In XP, I used the following line of code to switch between Excel files via a radial button...
[VBA]
Private Sub OB_TVL_Click()
Windows("SOC_TV_Left.xls").Activate
End Sub
Private Sub OB_TVR_Click()
Windows("SOC_TV_Right.xls").Activate
End Sub
[/VBA]
For whatever reason, Office 2007 does not recognize this line of code. And the funny thing is, it works great in Office 2003. I even tried recording a macro in 2007. While recording, I switched between Excel files . The macro in 2007 did not detect the transition and only detected what I did in the file that was recording. But in 2003, it detects the transition fine.
Hopefully I explained this correctly. Please feel free to ask me any questions. I would love to leave Vista running, but not if I can't fix this.
Thanks!!
Kaela