VBA: code to bring forward the original Workbook

mivan

New Member
Joined
Apr 24, 2018
Messages
2
Hi All,

I am new here and I was hoping to get help with my problem as I am at the end of my limited powers.

I have 2 Excel Workbooks online for clients to look at. One is "parent" WB (dashboard with graphs) the other one is "Data Input" WB (all information for graphs for dashboard are updated here). I am trying to have "Dashboard" with a Msg box to inform you that "Data Input" must be open. Then open "Data Input" in background.

My code:

[VBA]
Private Sub Workbook_Open()


MsgBox ("For up to date information click OK.")

ActiveWorkbook.FollowHyperlink Address:= urlpathtofileDataIput

ActiveWindow.WindowState = xlMinimized
Windows("Dashboard.xlsm").Activate
ActiveWindow.WindowState = xlMaximized


End Sub
[VBA]

I can't get it to work, it opens "Data Input" and let's it sit in front of "Dashboard". If you need more information to solve this please ask.

Hope I explained my problem correctly. Any help would be greatly appreciated.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,215,459
Messages
6,124,947
Members
449,198
Latest member
MhammadishaqKhan

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