Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default call a userform

In the project code module I want to call a userform. ProcessChoices is the
name of the form. SSPproject is the name of the Project.
I tried:

Public Sub ProcessChoices()
SSPproject.ProcessChoices Load
End Sub

It doesn't work, how do you load a form?
thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default call a userform

Are you trying to open a form in a spreadsheet (or addin) from another
spreadsheet or addin? If so then you need to either create a reference to the
project where the form is in the spreadsheet that is trying to load the form.
Tools - References -SSPproject.
Call SSPproject.LoadProcessChoices
Or you can use
Application.Run("SSPproject.LoadProcessChoices")

In either cases in the SSPproject you need to add a procedure to load the
form. The procedure needs to reside in a regular code module.

Public Sub LoadProcessChoices()
ProcessChoices.Show
end sub

--
HTH...

Jim Thomlinson


"Janis" wrote:

In the project code module I want to call a userform. ProcessChoices is the
name of the form. SSPproject is the name of the Project.
I tried:

Public Sub ProcessChoices()
SSPproject.ProcessChoices Load
End Sub

It doesn't work, how do you load a form?
thanks,

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default call a userform

Never mind, I figured it out. It has been one of those days.

"Janis" wrote:

In the project code module I want to call a userform. ProcessChoices is the
name of the form. SSPproject is the name of the Project.
I tried:

Public Sub ProcessChoices()
SSPproject.ProcessChoices Load
End Sub

It doesn't work, how do you load a form?
thanks,

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default call a userform

This is weird. What I did works except you can't close Excel afterward. You
have to force quit. Thanks I'll try your idea.

"Jim Thomlinson" wrote:

Are you trying to open a form in a spreadsheet (or addin) from another
spreadsheet or addin? If so then you need to either create a reference to the
project where the form is in the spreadsheet that is trying to load the form.
Tools - References -SSPproject.
Call SSPproject.LoadProcessChoices
Or you can use
Application.Run("SSPproject.LoadProcessChoices")

In either cases in the SSPproject you need to add a procedure to load the
form. The procedure needs to reside in a regular code module.

Public Sub LoadProcessChoices()
ProcessChoices.Show
end sub

--
HTH...

Jim Thomlinson


"Janis" wrote:

In the project code module I want to call a userform. ProcessChoices is the
name of the form. SSPproject is the name of the Project.
I tried:

Public Sub ProcessChoices()
SSPproject.ProcessChoices Load
End Sub

It doesn't work, how do you load a form?
thanks,

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
Macro to call-up UserForm Mr. G. Excel Worksheet Functions 0 August 24th 06 09:24 AM
How to call a sub from UserForm Module Myles[_58_] Excel Programming 1 March 31st 06 04:40 AM
Using cell name to call userform pjbur2005 Excel Programming 4 February 15th 06 03:47 PM
Problem with Blocking Dynamically generated UserForm Call vmegha Excel Programming 4 December 21st 05 12:39 PM
Is it possible to call a UserForm multiple times? Doug[_9_] Excel Programming 4 January 13th 04 07:12 PM


All times are GMT +1. The time now is 02:13 AM.

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"