Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default link a cell into a vba form

I have create a simple for for the user to enter three
variables. What I want to is to have that information go
into a particular cell. Can anyone tell me how to link
that infoprmtion entered from the form to the cell in the
worksheet

Regards

Newman

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default link a cell into a vba form

You can't link three textboxes to a single cell in a meaningful way. Link
each to a separate cell, then use a fourth cell to combine the information
if that is what you need. In the property of each textbox, under the
controlsource property, put in an entry like

Sheet1!A1

--
Regards,
Tom Ogilvy


newman wrote in message
...
I have create a simple for for the user to enter three
variables. What I want to is to have that information go
into a particular cell. Can anyone tell me how to link
that infoprmtion entered from the form to the cell in the
worksheet

Regards

Newman



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default link a cell into a vba form

Tom

Thank you I worked that one out is it possible to turn
that text input to a date selection rop down box

Regards

Newman
-----Original Message-----
You can't link three textboxes to a single cell in a

meaningful way. Link
each to a separate cell, then use a fourth cell to

combine the information
if that is what you need. In the property of each

textbox, under the
controlsource property, put in an entry like

Sheet1!A1

--
Regards,
Tom Ogilvy


newman wrote in message
...
I have create a simple for for the user to enter three
variables. What I want to is to have that information go
into a particular cell. Can anyone tell me how to link
that infoprmtion entered from the form to the cell in

the
worksheet

Regards

Newman



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default link a cell into a vba form

Assuming a combobox from the control toolbox toolbar on a worksheet.

Private Sub CommandButton2_Click()
Dim cbox As MSForms.ComboBox
Dim ctrl As MSForms.Control
Set cbox = ActiveSheet.OLEObjects("Combobox1").Object
cbox.Clear
For Each ctrl In UserForm1.Controls
If TypeOf ctrl Is MSForms.TextBox Then
Set tbox = ctrl
If Len(Trim(tbox.Text)) < 0 Then
If IsDate(tbox.Text) Then
cbox.AddItem tbox.Text
End If
End If
End If
Next

End Sub


--
Regards,
Tom Ogilvy



wrote in message
...
Tom

Thank you I worked that one out is it possible to turn
that text input to a date selection rop down box

Regards

Newman
-----Original Message-----
You can't link three textboxes to a single cell in a

meaningful way. Link
each to a separate cell, then use a fourth cell to

combine the information
if that is what you need. In the property of each

textbox, under the
controlsource property, put in an entry like

Sheet1!A1

--
Regards,
Tom Ogilvy


newman wrote in message
...
I have create a simple for for the user to enter three
variables. What I want to is to have that information go
into a particular cell. Can anyone tell me how to link
that infoprmtion entered from the form to the cell in

the
worksheet

Regards

Newman



.



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
Link To Form Tools amjad_bang Links and Linking in Excel 1 July 18th 10 03:10 PM
Changing Cell Link on Spin Button Form Control Adam Ronalds Excel Discussion (Misc queries) 14 August 27th 09 05:52 PM
Form Checkboxes are not maintaining cell link CSK Excel Discussion (Misc queries) 6 March 9th 07 03:14 PM
link form combobox hngo Excel Worksheet Functions 0 July 28th 06 03:38 PM
link spreadsheet with form rocketman Excel Worksheet Functions 1 December 3rd 04 06:25 AM


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