CallCentreVoice Topic Automating Macros

Created by:
Statistics:
Forum:
Quick links:

Joe Morgan on 3/9/2009 10:45:43.
Topic has 2 posts; viewed 1048 times.
General   [This topic is read only]
Forum List | Unified View | Latest Posts
Popular Topics | Editor's Choice | Voices WebLog

Author

Comments

Joe Morgan
Analyst
Barclays Bank

6 posts
0 friends welcomed

Automating Macros  [3/9/2009 10:45:43]

Hello

I have tried with different codes off the net to get a macro to run at a specific time on a specific day. For example at 8 am on Monday morning want a specific macro to run?

Has anyone any examples or code?

Thanks

You don't have the priviledges to view this user's post history

 

joabian alvarez
Global Workforce Analyst
acs

1 posts
0 friends welcomed

Re: Automating Macros  [11/9/2009 23:07:13]

Hy joe letme give an exemple
this will create a button on the rigth click menu all you have to do is to replace the names here
------------------------------------------------------------------------

Private Sub Workbook_Deactivate()

On Error Resume Next

With Application

.CommandBars("Cell").Controls("My Macro").Delete

End With

On Error GoTo 0

End Sub





Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)

Dim cBut As CommandBarButton



On Error Resume Next

With Application

.CommandBars("Cell").Controls("My Macro").Delete

Set cBut = .CommandBars("Cell").Controls.Add(Temporary:=True)

End With



With cBut

.Caption = "My Macro"

.Style = msoButtonCaption

.OnAction = "My_Macro"

End With

On Error GoTo 0
________________________________________

You don't have the priviledges to view this user's post history

 
  

In Read Only View, you cannot reply to any topic