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


i`m kind of new to vb programming, so all help will be appreciated.

Ive got a userform which i want to call from a sub, and run it, then
want to call another sub and just run that.

I was wondering how you would go about trying to call a userform (or
sub within a userform).

I tried the following

Sub Main()

deleteops 'delete ops

userform1 ' call userform

End Sub

but it doesnt work for the userform

Any ideas?

thanks

--
s_ali_hassa
-----------------------------------------------------------------------
s_ali_hassan's Profile: http://www.excelforum.com/member.php...fo&userid=3532
View this thread: http://www.excelforum.com/showthread.php?threadid=55145

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default calling a userform

try

Userform1.show


hope this helps!

s_ali_hassan wrote:
i`m kind of new to vb programming, so all help will be appreciated.

Ive got a userform which i want to call from a sub, and run it, then i
want to call another sub and just run that.

I was wondering how you would go about trying to call a userform (or a
sub within a userform).

I tried the following

Sub Main()

deleteops 'delete ops

userform1 ' call userform

End Sub

but it doesnt work for the userform

Any ideas?

thanks.


--
s_ali_hassan
------------------------------------------------------------------------
s_ali_hassan's Profile: http://www.excelforum.com/member.php...o&userid=35325
View this thread: http://www.excelforum.com/showthread...hreadid=551457


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,073
Default calling a userform

Hi,

What about..

UserForm1.Show

Ken Johnson

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

Userform1.Show

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"s_ali_hassan"
wrote in message
news:s_ali_hassan.29ci9c_1150210203.4301@excelforu m-nospam.com...

i`m kind of new to vb programming, so all help will be appreciated.

Ive got a userform which i want to call from a sub, and run it, then i
want to call another sub and just run that.

I was wondering how you would go about trying to call a userform (or a
sub within a userform).

I tried the following

Sub Main()

deleteops 'delete ops

userform1 ' call userform

End Sub

but it doesnt work for the userform

Any ideas?

thanks.


--
s_ali_hassan
------------------------------------------------------------------------
s_ali_hassan's Profile:

http://www.excelforum.com/member.php...o&userid=35325
View this thread: http://www.excelforum.com/showthread...hreadid=551457



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default calling a userform


nice one! tried it, and it worked.


--
s_ali_hassan
------------------------------------------------------------------------
s_ali_hassan's Profile: http://www.excelforum.com/member.php...o&userid=35325
View this thread: http://www.excelforum.com/showthread...hreadid=551457



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
Calling a Userform from a Predefined Variable [email protected] Excel Worksheet Functions 0 April 21st 07 03:44 PM
Calling function from a userform Jeff Excel Discussion (Misc queries) 0 September 27th 06 03:27 PM
Calling macro from UserForm AMK4[_30_] Excel Programming 3 February 2nd 06 05:55 AM
Button on Userform calling GetOpenFilename Werner Rohrmoser Excel Programming 2 March 22nd 05 07:15 AM
VBA question - Calling txt file from userform ajliaks[_9_] Excel Programming 2 April 17th 04 09:23 AM


All times are GMT +1. The time now is 12:25 AM.

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

About Us

"It's about Microsoft Excel"