PC Review


Reply
Thread Tools Rate Thread

How do I get input from an edit box to a worksheet?

 
 
=?Utf-8?B?QnJlbmRhbiBCLg==?=
Guest
Posts: n/a
 
      22nd Feb 2007
I have been trying to get edit box input from the dialog box to my control
sheet and am stuck. I have done this before but it may have been on an
earlier version of excel. Here's what I thought I could do:

Range("FirstNameBox").Text = Sheets("control").Range("FirstName").Text

Where "FirstNameBox" is the named range for the edit box on the dialog sheet.

What am I doing wrong?

Thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      22nd Feb 2007
In the VBA menu select view Properties windows and Project Manager. click
your form on the Prohject Manager window. Check the names of your forms. the
command you should be using is similar to this

Range("FirstNameBox").Text = Userform1.refedit1.text


"Brendan B." wrote:

> I have been trying to get edit box input from the dialog box to my control
> sheet and am stuck. I have done this before but it may have been on an
> earlier version of excel. Here's what I thought I could do:
>
> Range("FirstNameBox").Text = Sheets("control").Range("FirstName").Text
>
> Where "FirstNameBox" is the named range for the edit box on the dialog sheet.
>
> What am I doing wrong?
>
> Thanks

 
Reply With Quote
 
=?Utf-8?B?QnJlbmRhbiBCLg==?=
Guest
Posts: n/a
 
      22nd Feb 2007
Thanks. I'm working with an Excel 5.0 dialog box though--does this make a
difference? (Not using a userform...newbie...)

Thanks again.

"Joel" wrote:

> In the VBA menu select view Properties windows and Project Manager. click
> your form on the Prohject Manager window. Check the names of your forms. the
> command you should be using is similar to this
>
> Range("FirstNameBox").Text = Userform1.refedit1.text
>
>
> "Brendan B." wrote:
>
> > I have been trying to get edit box input from the dialog box to my control
> > sheet and am stuck. I have done this before but it may have been on an
> > earlier version of excel. Here's what I thought I could do:
> >
> > Range("FirstNameBox").Text = Sheets("control").Range("FirstName").Text
> >
> > Where "FirstNameBox" is the named range for the edit box on the dialog sheet.
> >
> > What am I doing wrong?
> >
> > Thanks

 
Reply With Quote
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      22nd Feb 2007

Never did this with 5.0. Is 5.0 part of Offfice 97. If it is I know therre
are siggnificant differences.

"Brendan B." wrote:

> Thanks. I'm working with an Excel 5.0 dialog box though--does this make a
> difference? (Not using a userform...newbie...)
>
> Thanks again.
>
> "Joel" wrote:
>
> > In the VBA menu select view Properties windows and Project Manager. click
> > your form on the Prohject Manager window. Check the names of your forms. the
> > command you should be using is similar to this
> >
> > Range("FirstNameBox").Text = Userform1.refedit1.text
> >
> >
> > "Brendan B." wrote:
> >
> > > I have been trying to get edit box input from the dialog box to my control
> > > sheet and am stuck. I have done this before but it may have been on an
> > > earlier version of excel. Here's what I thought I could do:
> > >
> > > Range("FirstNameBox").Text = Sheets("control").Range("FirstName").Text
> > >
> > > Where "FirstNameBox" is the named range for the edit box on the dialog sheet.
> > >
> > > What am I doing wrong?
> > >
> > > Thanks

 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      23rd Feb 2007
Since you can't (or it is difficult) to put an edit box on a worksheet, by
Excel 5.0 dialog box, I assume you mean dialogsheet.


I am guessing this is what you want:

Sheets("Control").Range("FirstName").Value = _
DialogSheets("Dialog1").EditBoxes("FirstNameBox").Value

Replace "Dialog1" with the name of your dialog sheet
Replace "FirstNameBox" with the name of your edit box.

You can't assign anything to the TEXT property of a range - it is read only.
You have to use the VALUE property.

--
Regards,
Tom Ogilvy


"Brendan B." <(E-Mail Removed)> wrote in message
news:1A5B8954-6CC8-4E69-ADCA-(E-Mail Removed)...
> Thanks. I'm working with an Excel 5.0 dialog box though--does this make a
> difference? (Not using a userform...newbie...)
>
> Thanks again.
>
> "Joel" wrote:
>
>> In the VBA menu select view Properties windows and Project Manager.
>> click
>> your form on the Prohject Manager window. Check the names of your forms.
>> the
>> command you should be using is similar to this
>>
>> Range("FirstNameBox").Text = Userform1.refedit1.text
>>
>>
>> "Brendan B." wrote:
>>
>> > I have been trying to get edit box input from the dialog box to my
>> > control
>> > sheet and am stuck. I have done this before but it may have been on an
>> > earlier version of excel. Here's what I thought I could do:
>> >
>> > Range("FirstNameBox").Text = Sheets("control").Range("FirstName").Text
>> >
>> > Where "FirstNameBox" is the named range for the edit box on the dialog
>> > sheet.
>> >
>> > What am I doing wrong?
>> >
>> > Thanks



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input and edit? Julius_Council Microsoft Access Forms 1 19th May 2008 03:47 PM
Not able to add or edit records from an input form. ChuckW Microsoft Access Forms 3 27th Nov 2007 08:22 PM
Edit query with Sql using user input =?Utf-8?B?am9qbzF1Zg==?= Microsoft Access Queries 4 29th Dec 2005 06:20 PM
Input Form on Worksheet 1, Data on Worksheet 2 Jim in Spokane Microsoft Excel Programming 1 4th Apr 2004 03:24 PM
Input method edit (IME) is not displayed Askool Xu Windows XP Accessibility 0 23rd Jul 2003 05:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:21 PM.