Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have various excel database with macros. All sheets have macros. Is it
possible to have a word file (a central place) where user can click a button and run those macros? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I do it with a separate Sheet in the same workbook called "MainMenu".
Thereon I put "buttons" which I create out of Drawing Objects, include text to identify which macro each runs, and assign the respective macros to them..........then on each sheet, I install a similar button titled "Return to MainMenu". hth Vaya con Dios, Chuck, CABGx3 "flow23" wrote: I have various excel database with macros. All sheets have macros. Is it possible to have a word file (a central place) where user can click a button and run those macros? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
true but thats within the same workbook. I have many different workbooks
which I want to update / run macro from single sheet / word document. "CLR" wrote: I do it with a separate Sheet in the same workbook called "MainMenu". Thereon I put "buttons" which I create out of Drawing Objects, include text to identify which macro each runs, and assign the respective macros to them..........then on each sheet, I install a similar button titled "Return to MainMenu". hth Vaya con Dios, Chuck, CABGx3 "flow23" wrote: I have various excel database with macros. All sheets have macros. Is it possible to have a word file (a central place) where user can click a button and run those macros? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Well, I've never done exactly that, but it seems you could do the same thing
with a separate Workbook. Just make local macros in that MasterWrokbook that will open each respective other Workbook and run a specified macro from therein, then close that other workbook..........should work the same but watch out for the possibility of the files being moved and/or MIS doing their enevitable "changing of directory names"......... Vaya con Dios, Chuck, CABGx3 "flow23" wrote: true but thats within the same workbook. I have many different workbooks which I want to update / run macro from single sheet / word document. "CLR" wrote: I do it with a separate Sheet in the same workbook called "MainMenu". Thereon I put "buttons" which I create out of Drawing Objects, include text to identify which macro each runs, and assign the respective macros to them..........then on each sheet, I install a similar button titled "Return to MainMenu". hth Vaya con Dios, Chuck, CABGx3 "flow23" wrote: I have various excel database with macros. All sheets have macros. Is it possible to have a word file (a central place) where user can click a button and run those macros? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
What do you mean by this:
All sheets have macros. Does this mean that you have events associated with various worksheets or that all spreadsheets(=workbooks) have macros? If you mean that each workbook has the same macros, you could remove all that code and create an addin. Then give the user a way to run the common macro--via options on the menubar or from a toolbar. If you want to add an option to the worksheet menu bar, I really like the way John Walkenbach does it in his menumaker workbook: http://j-walk.com/ss/excel/tips/tip53.htm Here's how I do it when I want a toolbar: http://www.contextures.com/xlToolbar02.html (from Debra Dalgleish's site) flow23 wrote: I have various excel database with macros. All sheets have macros. Is it possible to have a word file (a central place) where user can click a button and run those macros? -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() What I meant was that there are various excel books ( workbooks) with macros in it. There are also menu individually in them. However, we extract data from other software roughly every 15 days and each work books has macro that pulls the data and analyse them. Instead of depending on end user to click the menu button on each workbook. We in our department would like a word document or excel document that has buttons which execute macros in this workbooks from one place. (instead of opening them individually and clicking the button) "Dave Peterson" wrote: What do you mean by this: All sheets have macros. Does this mean that you have events associated with various worksheets or that all spreadsheets(=workbooks) have macros? If you mean that each workbook has the same macros, you could remove all that code and create an addin. Then give the user a way to run the common macro--via options on the menubar or from a toolbar. If you want to add an option to the worksheet menu bar, I really like the way John Walkenbach does it in his menumaker workbook: http://j-walk.com/ss/excel/tips/tip53.htm Here's how I do it when I want a toolbar: http://www.contextures.com/xlToolbar02.html (from Debra Dalgleish's site) flow23 wrote: I have various excel database with macros. All sheets have macros. Is it possible to have a word file (a central place) where user can click a button and run those macros? -- Dave Peterson |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If all those macros are the same, then an addin seems like a reasonable
solution. flow23 wrote: What I meant was that there are various excel books ( workbooks) with macros in it. There are also menu individually in them. However, we extract data from other software roughly every 15 days and each work books has macro that pulls the data and analyse them. Instead of depending on end user to click the menu button on each workbook. We in our department would like a word document or excel document that has buttons which execute macros in this workbooks from one place. (instead of opening them individually and clicking the button) "Dave Peterson" wrote: What do you mean by this: All sheets have macros. Does this mean that you have events associated with various worksheets or that all spreadsheets(=workbooks) have macros? If you mean that each workbook has the same macros, you could remove all that code and create an addin. Then give the user a way to run the common macro--via options on the menubar or from a toolbar. If you want to add an option to the worksheet menu bar, I really like the way John Walkenbach does it in his menumaker workbook: http://j-walk.com/ss/excel/tips/tip53.htm Here's how I do it when I want a toolbar: http://www.contextures.com/xlToolbar02.html (from Debra Dalgleish's site) flow23 wrote: I have various excel database with macros. All sheets have macros. Is it possible to have a word file (a central place) where user can click a button and run those macros? -- Dave Peterson -- Dave Peterson |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
All macros have same name (but different function)
but how will I add a ADDIN? "Dave Peterson" wrote: If all those macros are the same, then an addin seems like a reasonable solution. flow23 wrote: What I meant was that there are various excel books ( workbooks) with macros in it. There are also menu individually in them. However, we extract data from other software roughly every 15 days and each work books has macro that pulls the data and analyse them. Instead of depending on end user to click the menu button on each workbook. We in our department would like a word document or excel document that has buttons which execute macros in this workbooks from one place. (instead of opening them individually and clicking the button) "Dave Peterson" wrote: What do you mean by this: All sheets have macros. Does this mean that you have events associated with various worksheets or that all spreadsheets(=workbooks) have macros? If you mean that each workbook has the same macros, you could remove all that code and create an addin. Then give the user a way to run the common macro--via options on the menubar or from a toolbar. If you want to add an option to the worksheet menu bar, I really like the way John Walkenbach does it in his menumaker workbook: http://j-walk.com/ss/excel/tips/tip53.htm Here's how I do it when I want a toolbar: http://www.contextures.com/xlToolbar02.html (from Debra Dalgleish's site) flow23 wrote: I have various excel database with macros. All sheets have macros. Is it possible to have a word file (a central place) where user can click a button and run those macros? -- Dave Peterson -- Dave Peterson |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If the macros have different functions, then I'm not sure a common addin is
better. But if you have common routines, then you could create an addin that has all the routines. Then provide that toolbar/menuitem for the user to run the routine(s). File|SaveAs change the "Save As Type" to "microsoft office excel add-in (*.xla)" flow23 wrote: All macros have same name (but different function) but how will I add a ADDIN? "Dave Peterson" wrote: If all those macros are the same, then an addin seems like a reasonable solution. flow23 wrote: What I meant was that there are various excel books ( workbooks) with macros in it. There are also menu individually in them. However, we extract data from other software roughly every 15 days and each work books has macro that pulls the data and analyse them. Instead of depending on end user to click the menu button on each workbook. We in our department would like a word document or excel document that has buttons which execute macros in this workbooks from one place. (instead of opening them individually and clicking the button) "Dave Peterson" wrote: What do you mean by this: All sheets have macros. Does this mean that you have events associated with various worksheets or that all spreadsheets(=workbooks) have macros? If you mean that each workbook has the same macros, you could remove all that code and create an addin. Then give the user a way to run the common macro--via options on the menubar or from a toolbar. If you want to add an option to the worksheet menu bar, I really like the way John Walkenbach does it in his menumaker workbook: http://j-walk.com/ss/excel/tips/tip53.htm Here's how I do it when I want a toolbar: http://www.contextures.com/xlToolbar02.html (from Debra Dalgleish's site) flow23 wrote: I have various excel database with macros. All sheets have macros. Is it possible to have a word file (a central place) where user can click a button and run those macros? -- Dave Peterson -- Dave Peterson -- Dave Peterson |
#10
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Flow,
I've done the following as an example: I created Book2.xls Book2 has the following macro in it: Sub temp_book2() ThisWorkbook.Sheets(1).Cells(3, 3) = "abc" End Sub I next created Book3.xls. In sheet1 I put a rectangle and added text to it -- just the word "run", it could of course be anything. Then, right clicking, under "assign macro", I put: Book2!temp_book2 Now, clicking on that rectangle causes the macro in Book2 to run. Art "flow23" wrote: I have various excel database with macros. All sheets have macros. Is it possible to have a word file (a central place) where user can click a button and run those macros? |
#11
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I tried it but syntax error says "Object required"
"Art" wrote: Flow, I've done the following as an example: I created Book2.xls Book2 has the following macro in it: Sub temp_book2() ThisWorkbook.Sheets(1).Cells(3, 3) = "abc" End Sub I next created Book3.xls. In sheet1 I put a rectangle and added text to it -- just the word "run", it could of course be anything. Then, right clicking, under "assign macro", I put: Book2!temp_book2 Now, clicking on that rectangle causes the macro in Book2 to run. Art "flow23" wrote: I have various excel database with macros. All sheets have macros. Is it possible to have a word file (a central place) where user can click a button and run those macros? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically update cells | Excel Discussion (Misc queries) | |||
options to update automatic links | Excel Worksheet Functions | |||
Prompt to update links | Links and Linking in Excel | |||
Update links prompt not wanted | Excel Discussion (Misc queries) | |||
keep value from last update and don't ask to update links | Excel Discussion (Misc queries) |