Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Invalid procedure call or argument error

I have a UserForm which has on it a MultiPage control on it. I want to use
the code below to bring up my Data_Input Userform and I want to be on the
January page. The code below is not working. I get an Invalid procedure call
or argument error. I used similar code to call other pages on the UserForm,
so I assume the problem is the fact that the page January is located on a
MultiPage control located on the Income page. Hope that makes sense. Does
anyone know how to alter the code below to get it to work?



Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

If Not Application.Intersect _
(Target, Me.Range("B3:I3,K3")) Is Nothing Then
myMPPageName = "January"
Data_Input.Show

End If

End Sub


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Invalid procedure call or argument error

A little amplification.

The January page is located on the MultiPage2 control which is imbedded in
the Income page of the MultiPage1 control.

"Patrick Simonds" wrote in message
...
I have a UserForm which has on it a MultiPage control on it. I want to use
the code below to bring up my Data_Input Userform and I want to be on the
January page. The code below is not working. I get an Invalid procedure
call or argument error. I used similar code to call other pages on the
UserForm, so I assume the problem is the fact that the page January is
located on a MultiPage control located on the Income page. Hope that makes
sense. Does anyone know how to alter the code below to get it to work?



Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

If Not Application.Intersect _
(Target, Me.Range("B3:I3,K3")) Is Nothing Then
myMPPageName = "January"
Data_Input.Show

End If

End Sub



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time Error '5' - Invalid procedure call or argument Trefor Excel Discussion (Misc queries) 2 December 17th 07 03:32 AM
Invalid Procedure call or argument T De Villiers[_58_] Excel Programming 1 July 25th 06 03:01 PM
Run-time error '5': Invalid Procedure Call or Argument Nikila Excel Discussion (Misc queries) 2 February 24th 06 09:26 PM
Run Time Error 5 - Invalid Procedure Call or Argument Q John[_110_] Excel Programming 3 September 26th 05 09:47 PM
Run-time error '5':Invalid Procedure call or argument Jan Refsdal Excel Programming 1 July 25th 03 05:14 AM


All times are GMT +1. The time now is 11:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"