Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have just started with Macros. I have recorded a few and want them to run when you select a specific worksheet tab. The macros do calculations and paste the data from another worksheet. When a user selects the tab for the "Bottom5" worksheet, I want the macros to run. How do I make this happen? Thanks for any help. -- daddioja ------------------------------------------------------------------------ daddioja's Profile: http://www.excelforum.com/member.php...o&userid=35024 View this thread: http://www.excelforum.com/showthread...hreadid=547630 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you right click on the required tab and select View Code, then put your
code into a specific sub routine such as:- Private Sub Worksheet_Activate() MsgBox "Hi" End Sub then each time you select that tab the code will execute. "daddioja" wrote: I have just started with Macros. I have recorded a few and want them to run when you select a specific worksheet tab. The macros do calculations and paste the data from another worksheet. When a user selects the tab for the "Bottom5" worksheet, I want the macros to run. How do I make this happen? Thanks for any help. -- daddioja ------------------------------------------------------------------------ daddioja's Profile: http://www.excelforum.com/member.php...o&userid=35024 View this thread: http://www.excelforum.com/showthread...hreadid=547630 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks a lot for the advice. It was perfect. Does anyone know any sites that provide tips on basic syntax for writing? I want to sort, copy, paste, etc. Thanks again for any help. -- daddioja ------------------------------------------------------------------------ daddioja's Profile: http://www.excelforum.com/member.php...o&userid=35024 View this thread: http://www.excelforum.com/showthread...hreadid=547630 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
daddioja wrote:
I have just started with Macros. I have recorded a few and want them to run when you select a specific worksheet tab. The macros do calculations and paste the data from another worksheet. When a user selects the tab for the "Bottom5" worksheet, I want the macros to run. How do I make this happen? Thanks for any help. Call them from the worksheet activate event: Private Sub Worksheet_Activate() End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically run macros | Excel Discussion (Misc queries) | |||
Run macros automatically-AutoFit | Excel Discussion (Misc queries) | |||
run macros automatically | Excel Discussion (Misc queries) | |||
Automatically running macros | Excel Programming | |||
Disable Macros Automatically | Excel Programming |