Call Calendar

G

Guest

Hi

I am using the calendar code from Ron de Bruin's site put in PERSONAL.XLS:
http://www.rondebruin.nl/calendar.htm

I want to call OpenCalender from Sheet2:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If Target.Row > 4 And Target.Column = 6 Then
Cancel = True
Call OpenCalendar
End If
End Sub

But I get the errormessage "The macro 'test.xls!Module1.OpenCalendar' cannot
be found"

I seems that it can't "see" the macro in PERSONAL.XLS - any solutions, what
am I doing wrong.

/Steen
 
C

Chip Pearson

I don't see anything on Ron's page that references the function
"OpenCalendar". Post THAT code and we'll see what the problem is.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)
 
G

Guest

Hi Chip

Thaks for replying. The following code is in Macro1 under PERSONAL.XLS

Option Explicit

Sub OpenCalendar()
' Displays the UserForm and calendar
' Shortcuts should be made to this procedure
frmCalendar.Show
End Sub

Does that give you a clue?
 
G

Guest

Hi Chip

I have copied the code from PERSONAL.XLS to the Module/sheet where I use it
and that works. Thans for your help.
 
D

Dave Peterson

Instead of this:
Call OpenCalendar
could you have used:
Application.run "Personal.xls!OpenCalendar"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top