Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Textbox - code to drop into a cell

Hi all

This maybe a very simple code and I should know this but I am out of
practise as I haven't used code for over a year and a little out of touch.

I have designed a UserForm with lots of Textboxes and I want to drop each
textbox text into various cells on a spreadsheet (mailshot - addresses and
telephone numbers etc). I want to be able to tab through all texboxes and
when I click on OK at the end it transfers all the text into those cells.

Simple but yet hard for me to get my head round and I'm losing valuable time
- so I thought I would get on here and ask you experts.

Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default Textbox - code to drop into a cell

abby -
here's a sample of one of my macros - will give you a place to start

'copy the data to the letters
With Sheets("bid approved")
..Range("A12").Value = Me.txtClient.Value
..Range("B8").Value = Me.txtContractor.Value
..Range("C55").Value = Me.txtClient.Value
..Range("C52").Value = Me.txtContractor.Value
..Range("B16").Value = Me.txtWinBid.Value
End With

With Sheets("Bids Listed")
..Range("A12").Value = Me.txtClient.Value
..Range("F17").Value = Me.txtWinBid.Value
..Range("F19").Value = Me.txt2nd.Value
..Range("F21").Value = Me.txt3rd.Value
..Range("F23").Value = Me.txt4th.Value
..Range("F25").Value = Me.txt5th.Value
..Range("B16").Value = Me.cboReasonWhy.Value
End With

:)
susan



On May 25, 6:07 am, Abby wrote:
Hi all

This maybe a very simple code and I should know this but I am out of
practise as I haven't used code for over a year and a little out of touch.

I have designed a UserForm with lots of Textboxes and I want to drop each
textbox text into various cells on a spreadsheet (mailshot - addresses and
telephone numbers etc). I want to be able to tab through all texboxes and
when I click on OK at the end it transfers all the text into those cells.

Simple but yet hard for me to get my head round and I'm losing valuable time
- so I thought I would get on here and ask you experts.

Many thanks



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
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
Code to an in cell drop down list frendabrenda1 Excel Discussion (Misc queries) 4 September 1st 05 08:06 PM
Textbox Code browie Excel Programming 1 July 27th 05 05:56 PM
drag and drop cell group into textbox Neek Excel Programming 0 April 21st 04 09:21 AM
Code for moving textbox Phil Perry Excel Programming 2 July 9th 03 03:49 PM


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