Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Open Files by Clicking on a Cell

In a dedicated folder, a workbook named Dashboard, with a single worksheet
(also named Dashboard), contains a matrix of Departments, with performance
ratings in three categories, A1, A2, and A3, in columns F, I, and L.
(Columns G and J are hidden.)

In that same folder are 51 workbooks for various Departments - example
below. These files are 6mb each.

The requirement: While users have Dashboard on screen, they want to click
on a particular cell, say Operations A1 (75%), cell F11, and have the
OperationsA1.xls file come on screen.

What would the code be to make this work? A quick open on the 6mb file
would be a big plus. The three ranges of click cells would be F10:F17,
I10:I17, and L10:L17.

Is there a clean, efficient architecture to this project? Any suggestions
appreciated.

I plan to put a control button in Department worksheets to return to
Dashboard or should this be done by code too?


Dashboard.xls:
Col. Col. Col.
F J
L
---- ---- ----
Row 9 A1 A2 A3
Row 10 Finance 92% 85% 100%
Row 11 Operations 75% 97% 92%
Etc. Etc. Etc. Etc. Etc.
Row 17 Engineering 88% 96% 99%


Department workbooks:
FinanceA1.xls
FinanceA2.xls
FinanceA3.xls
OperationsA1.xls
OperationsA2.xls
OperationsA3.xls
Etc.
EngineeringA1.xls
EngineeringA2.xls
EngineeringA3.xls

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Open Files by Clicking on a Cell

Right click on the sheet tabview codeleft window select worksheetright
window select double clickinsert this.
Now when you double click on a cell with Operations A1 typed in it (BY
ITSELF), the workbook will open/ or activate if opened already.

If ActiveCell.Value = "" Then Exit Sub
workbookname = ActiveCell.Value
On Error GoTo OpenWorkbook
Windows(workbookname & ".xls").Activate
Exit Sub
OpenWorkbook:
Workbooks.Open(workbookname & ".xls").RunAutoMacros xlAutoOpen

--
Don Guillett
SalesAid Software

"Phil Hageman" wrote in message
...
In a dedicated folder, a workbook named "Dashboard", with a single

worksheet
(also named Dashboard), contains a matrix of Departments, with performance
ratings in three categories, A1, A2, and A3, in columns F, I, and L.
(Columns G and J are hidden.)

In that same folder are 51 workbooks for various Departments - example
below. These files are 6mb each.

The requirement: While users have Dashboard on screen, they want to click
on a particular cell, say Operations A1 (75%), cell F11, and have the
OperationsA1.xls file come on screen.

What would the code be to make this work? A quick open on the 6mb file
would be a big plus. The three ranges of "click" cells would be F10:F17,
I10:I17, and L10:L17.

Is there a clean, efficient architecture to this project? Any suggestions
appreciated.

I plan to put a control button in Department worksheets to return to
Dashboard - or should this be done by code too?


Dashboard.xls:
Col. Col. Col.
F J
L
---- ---- ----
Row 9 A1 A2 A3
Row 10 Finance 92% 85% 100%
Row 11 Operations 75% 97% 92%
Etc. Etc. Etc. Etc. Etc.
Row 17 Engineering 88% 96% 99%


Department workbooks:
FinanceA1.xls
FinanceA2.xls
FinanceA3.xls
OperationsA1.xls
OperationsA2.xls
OperationsA3.xls
Etc.
EngineeringA1.xls
EngineeringA2.xls
EngineeringA3.xls



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can only open files from in Excel, not from double clicking on the Keven Excel Discussion (Misc queries) 6 May 15th 09 11:37 PM
Can't open existing files by double-clicking. Kirby Excel Discussion (Misc queries) 9 July 29th 08 02:24 PM
Files won't open when clicking on them in Explorer Ron Rosenberg Excel Discussion (Misc queries) 1 June 26th 08 10:33 PM
Excel do not open the files when double clicking Alfonso Torres Excel Discussion (Misc queries) 1 April 20th 07 08:59 PM
Also minimize Excel by clicking taskbar icon without files open. ExcelDog Excel Discussion (Misc queries) 3 July 26th 05 06:43 PM


All times are GMT +1. The time now is 01:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"