#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Form

Hi,

I would like to set my form as I set a worksheet however I get a type
mismatch.
My book does not list a form as an object and I do not see 'Form' as an
option on the Dim statement. I'm not using it so much as in a with statment
but I would like to type the name of the form once in the beginning and use a
variable in the code.

Can this be done?

Thanks
--

Karen
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Form

Dim frm As Userform1

Set frm = New Userform1

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Karen53" wrote in message
...
Hi,

I would like to set my form as I set a worksheet however I get a type
mismatch.
My book does not list a form as an object and I do not see 'Form' as an
option on the Dim statement. I'm not using it so much as in a with
statment
but I would like to type the name of the form once in the beginning and
use a
variable in the code.

Can this be done?

Thanks
--

Karen



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Form

Thanks!
--

Karen


"Bob Phillips" wrote:

Dim frm As Userform1

Set frm = New Userform1

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Karen53" wrote in message
...
Hi,

I would like to set my form as I set a worksheet however I get a type
mismatch.
My book does not list a form as an object and I do not see 'Form' as an
option on the Dim statement. I'm not using it so much as in a with
statment
but I would like to type the name of the form once in the beginning and
use a
variable in the code.

Can this be done?

Thanks
--

Karen




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
Call user form from ThisWorkbook; close file if form closed XP Excel Programming 2 July 20th 07 07:04 PM
Pass variable from form to form to form headly Excel Programming 1 May 31st 06 02:50 AM
Strange issue freezing parent form when unloading a child form Stefano Gatto Excel Programming 1 November 11th 05 04:42 PM
Transfer data to form from Excel range upon loading of form. Rob Crawford Excel Programming 2 October 24th 05 03:59 PM
Is it possible to open the VBA form with a link in a sheet and to pass variable from a cell to the VBA form? Daniel[_14_] Excel Programming 1 August 29th 04 01:20 PM


All times are GMT +1. The time now is 03:13 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"