Computing.Net > Forums > Windows 95/98 > Excel Macro

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel Macro

Reply to Message Icon

Name: hasan
Date: August 21, 2003 at 17:13:41 Pacific
OS: NT
CPU/Ram: Network
Comment:

I am having a problem with a macro that I have develop;

Scenario;
I want the two macros to open a specific sheet from the same file irrespective of wether the file is closed or open.

My macro's are in a file called " KPI Control Scadule" and I have assainged TWO buttons for that to open sheets within a file called "Manu Productivity Chart".

My macros for each buttons are as follows:

Macro1

Sub goto1()
'
' goto1 Macro
' Goto manufacturing throughput KPI charts
' ChDir "G:\Common\KPI Group\Supply Chain KPI\Group KPI"
Workbooks.Open FileName:= _
"Manu Productuvity charts.xls"
Sheets("Units Throughput").Select
Range("B1").Select
End Sub

Macro2
Sub goto2()
'
' goto2 Macro
' goto unit per labour hour KPI graphs
' ChDir "G:\Common\KPI Group\Supply Chain KPI\Group KPI"
Workbooks.Open FileName:= _
"Manu Productuvity charts.xls"
Sheets("Units per labour hour").Select
Range("B1").Select
End Sub

Can someone help me to make both the macros dynamic so that the irrespective of the file being open or closed the two macro button should take the user to the specific "sheet" within the "Manu Productuvity charts.xls at any time.




Sponsored Link
Ads by Google

Response Number 1
Name: DW
Date: August 21, 2003 at 18:06:03 Pacific
Reply:

Hasan...
You might have better luck if you posted your question on the Office Software Forum
Good luck!


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Excel Macro

Excel Macro to delete rows of text? www.computing.net/answers/windows-95/excel-macro-to-delete-rows-of-text/139136.html

Excel macro www.computing.net/answers/windows-95/excel-macro/42410.html

excel macro from a batch file? www.computing.net/answers/windows-95/excel-macro-from-a-batch-file/137168.html