Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Coding for Userforms

I've created a userform which has a lot of stuff like combo boxes, option
boxes, text boxes. Since I'm relatively new to this I was wondering if I
could get any help on as to how to code for stuff like combo boxes. Is it
possible to add stuff into combo boxes that will automatically be inserted
into the excel spreadsheet. Where can I get some sample code for reference?

Also, my each row on my spreadsheet has columns that do several calculations
using data from other columns in the same row. So if I need to add a new row
using the combo box, will it be possible for the formulas for the other
cells to be added as well in the new row?? Thanks in advance


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

With Worksheets("Data")
i = .cells(rows.count,1).End(xlup)(2).Row
.cells(i,1).Entirerow.Insert
.cells(i,1).Value = Userform1.Combobox1.Value
.cells(i,2).Resize(1,5).FillDown
End with
--
Regards,
Tom Ogilvy

"Abhay Sanan" wrote in message
...
I've created a userform which has a lot of stuff like combo boxes, option
boxes, text boxes. Since I'm relatively new to this I was wondering if I
could get any help on as to how to code for stuff like combo boxes. Is it
possible to add stuff into combo boxes that will automatically be inserted
into the excel spreadsheet. Where can I get some sample code for

reference?

Also, my each row on my spreadsheet has columns that do several

calculations
using data from other columns in the same row. So if I need to add a new

row
using the combo box, will it be possible for the formulas for the other
cells to be added as well in the new row?? Thanks in advance




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Coding for Userforms

Abhay

Abhay Sanan wrote:
I've created a userform which has a lot of stuff like combo boxes,
option boxes, text boxes. Since I'm relatively new to this I was
wondering if I could get any help on as to how to code for stuff like
combo boxes. Is it possible to add stuff into combo boxes that will
automatically be inserted into the excel spreadsheet. Where can I get
some sample code for reference?


You can look through the help files for some sample code. Use F2 in the VBE
to open the object browser. Browse through the MSForms library (make sure
you have a workbook with a userform open).

Also, you can browse around here
http://www.dicks-blog.com/archives/c...-and-controls/

If you have more specific questions when you've been through that, be sure
to post back.


--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com


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
"=ROW()-1" type of coding doesn't appear in a filter / is there coding that does? StargateFan[_3_] Excel Programming 10 October 6th 05 01:18 PM
Two Userforms MBlake Excel Programming 4 April 25th 05 07:23 PM
userforms R Excel Programming 2 May 2nd 04 04:21 AM
Userforms Paul Clark Excel Programming 2 January 17th 04 04:51 PM
Userforms Henry[_4_] Excel Programming 0 August 9th 03 11:37 PM


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