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

'Hi,
I am working on a userform which references several cells on a worksheet
(called "Projects"). However, when I try toinitialise it from another
worksheet ("Timesheet") I get the following error message:

Run-time error 1004:
Select methos of Range class failed

Couls someone explain what this means please.

Ultimately, when the usrFrm has been completed I want to hide the "Projects"
worksheet and initailise the usrFrm from the "Timesheet" worksheet.

Many thanks.

CMcK


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Initializing UserForm

You can't select on a hidden sheet - only on the activesheet.

You rarely need to select however

Userform1.Textbox1.Value = Worksheets("Projects").Range("B9").Value
Userform1.Textbox2.Value = Worksheets("Projects").Range("C11").Value

--
Regards,
Tom Ogilvy


"CMcK" wrote in message
...
'Hi,
I am working on a userform which references several cells on a worksheet
(called "Projects"). However, when I try toinitialise it from another
worksheet ("Timesheet") I get the following error message:

Run-time error 1004:
Select methos of Range class failed

Couls someone explain what this means please.

Ultimately, when the usrFrm has been completed I want to hide the
"Projects"
worksheet and initailise the usrFrm from the "Timesheet" worksheet.

Many thanks.

CMcK




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
Userform initializing problem when opening Cajeto 63 Excel Programming 4 October 19th 06 08:10 PM
Initializing UserForm which uses MultiPage controls Patrick Simonds Excel Programming 6 August 15th 06 02:42 AM
stop userform from initializing JT[_2_] Excel Programming 3 March 4th 05 07:18 PM
Initializing Combobox in a Userform Neal[_5_] Excel Programming 2 September 15th 04 12:19 AM
Initializing Userform Szadkowski Excel Programming 1 August 31st 04 12:35 AM


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