Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Run-Time Error 424 - Object Required

Help please.

I am using Excel2003.

I have a dialog box with a number of Editboxes - the user enters info in the
edit box and I then want that info in a given cell (B6) on Worksheet
(Information Sheet)

This is only one line and I have applied this to the OK button

Sub Button2_Click()
Worksheets("Information Sheet").Range("B6") = TextBox16.Text
End Sub

I have tried using EditBox16.Text and I still get the same error each time.


Thanks

Spottytash
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Run-Time Error 424 - Object Required

Maybe something like:

Sub Button2_Click()
Worksheets("Information Sheet").Range("B6") = _
DialogSheets("Dialog1").Editboxes(1).Text
End Sub

But why not just link the edit box to the cell.

--
Regards,
Tom Ogilvy


"SpottyTash" wrote in message
...
Help please.

I am using Excel2003.

I have a dialog box with a number of Editboxes - the user enters info in

the
edit box and I then want that info in a given cell (B6) on Worksheet
(Information Sheet)

This is only one line and I have applied this to the OK button

Sub Button2_Click()
Worksheets("Information Sheet").Range("B6") = TextBox16.Text
End Sub

I have tried using EditBox16.Text and I still get the same error each

time.


Thanks

Spottytash



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Run-Time Error 424 - Object Required

Tom would love to be able to do that but not sure how.

I have already created the dialog box with all its edit boxes. I have some
other items in the dialog box - some drop dowm lists and some Yes/No options
and when I go into properties I can link a cell easily. I just dont seem to
be able to do that with the edit boxes and I am not sure why?

Spottytash

"Tom Ogilvy" wrote:

Maybe something like:

Sub Button2_Click()
Worksheets("Information Sheet").Range("B6") = _
DialogSheets("Dialog1").Editboxes(1).Text
End Sub

But why not just link the edit box to the cell.

--
Regards,
Tom Ogilvy


"SpottyTash" wrote in message
...
Help please.

I am using Excel2003.

I have a dialog box with a number of Editboxes - the user enters info in

the
edit box and I then want that info in a given cell (B6) on Worksheet
(Information Sheet)

This is only one line and I have applied this to the OK button

Sub Button2_Click()
Worksheets("Information Sheet").Range("B6") = TextBox16.Text
End Sub

I have tried using EditBox16.Text and I still get the same error each

time.


Thanks

Spottytash




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Run-Time Error 424 - Object Required

My fault. Editboxes don't have the capability to be linked. I can't say
why.

--
Regards,
Tom Ogilvy
"SpottyTash" wrote in message
...
Tom would love to be able to do that but not sure how.

I have already created the dialog box with all its edit boxes. I have

some
other items in the dialog box - some drop dowm lists and some Yes/No

options
and when I go into properties I can link a cell easily. I just dont seem

to
be able to do that with the edit boxes and I am not sure why?

Spottytash

"Tom Ogilvy" wrote:

Maybe something like:

Sub Button2_Click()
Worksheets("Information Sheet").Range("B6") = _
DialogSheets("Dialog1").Editboxes(1).Text
End Sub

But why not just link the edit box to the cell.

--
Regards,
Tom Ogilvy


"SpottyTash" wrote in message
...
Help please.

I am using Excel2003.

I have a dialog box with a number of Editboxes - the user enters info

in
the
edit box and I then want that info in a given cell (B6) on Worksheet
(Information Sheet)

This is only one line and I have applied this to the OK button

Sub Button2_Click()
Worksheets("Information Sheet").Range("B6") = TextBox16.Text
End Sub

I have tried using EditBox16.Text and I still get the same error each

time.


Thanks

Spottytash






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
Object required error broogle Excel Programming 7 March 21st 05 09:01 AM
Object required - run time error 424. devorivivere Excel Programming 3 April 10th 04 05:43 PM
Run-time error '424': Object required Phil Bewig Excel Programming 3 February 1st 04 08:38 PM
Syntax Error Runtime Error '424' Object Required sjenks183 Excel Programming 1 January 23rd 04 09:25 AM
Dget in VBA gets Object required run-time error? John MacGregor Excel Programming 1 December 17th 03 03:44 AM


All times are GMT +1. The time now is 12:37 PM.

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"