Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default How to use Macro throughout Department

How about putting the macro in that same workbook.

Put a button (from the forms toolbar) on an instruction worksheet that has your
macro assigned to it.



SharonInGa wrote:

The Excel spreadsheet named "Investment Reviews" is email to several people.
Those people need to be able to click a command button which saves that
spreadsheet to their C drive and manipulates the information using the VBA
module "Sub ProcessPortfolioHoldings()

Where do I need to place the macros so that everyone in the department can
run this report independently on their PCs?

Why is this command not running the second macro?

ActiveWorkbook.RunAutoMacros xlRunPortfolioSetup

Sub ProcessPortfolioHoldings()

Workbooks.Open Filename:="C:\Investment Review.csv"

ActiveWorkbook.SaveAs Filename:="C:\PortfolioHoldings.xls", FileFormat:= _
xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False

''Workbooks.Open "PortfolioHoldings.XLS"

ActiveWorkbook.RunAutoMacros xlRunPortfolioSetup



--

Dave Peterson
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
Bar chart by division, department, region date Stephanie Charts and Charting in Excel 1 March 20th 09 08:48 AM
add number of days within a department for a given time period Ralph D''Andrea Excel Worksheet Functions 3 October 3rd 07 09:21 PM
Automating Department Payroll Howard R Excel Discussion (Misc queries) 4 March 5th 07 01:07 PM
Calculating Working Days - Department of Pathology Andrea Excel Discussion (Misc queries) 1 July 20th 05 07:20 PM


All times are GMT +1. The time now is 11:19 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"