ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to use Macro throughout Department (https://www.excelbanter.com/excel-programming/325886-re-how-use-macro-throughout-department.html)

Dave Peterson[_5_]

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


All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com