LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Data on UserForm to different sheet based on day of week chosen?

I desperately need to utilize one UserForm to send data to different
worksheets based on the choice of DAY of WEEK which will be chosen from a
combo box.

Please someone tell me it can be done.

I have one sheet named EntryForm and subsequent worksheets named Monday,
Tuesday, etc. While staff are entering data for day's activity, they will
choose Day of week and the following data entered should go to Monday
worksheet if Monday is chosen, etc. My program works fine for data going to
Sheet1 in my current set up but I need another similar program to place data
on separate worksheets based on choice of Day of Week.

Currently I have the following:
Private Sub CommandButton2_click()
Dim LastRow As Object

Set Lastow = Sheet2.Range("a65536").End(x1Up)

LastRow.Offset (1, 0).Value = TextBox1.Text
LastRow.Offset (1, 1).Value = Text Box2.Text
LastRow.Offset (1, 2).Value = ComboBox3.Text

etc, etc,

then at last 'LastRow"
MsgBox "One record written to POC Activity Log"

response = MsgBox ("Do you want to enter another record?", vbYesNo)

Records are written to sheet2.
But I need to add a text field named Day of Week and as I already said
(twice!) need the data to go to sheet Monday, Tuesday, etc. Clear as mud??!!

PLEASE HELP!!

--
Jennifer Lee
IS Coordinator/App Support
 
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
Filter rows on sheet 2 when a certain option is chosen on sheet 1 GIP Excel Worksheet Functions 1 August 19th 10 07:48 PM
Auto-filtering based on a value chosen in a combo box? Dan Excel Discussion (Misc queries) 0 November 6th 07 03:51 PM
Creating a graph based on a chosen group of data Steve D Charts and Charting in Excel 1 June 20th 06 02:46 PM
Select sheet based on userform date input mugitty Excel Programming 4 January 22nd 06 09:37 PM
How do I generate a new sheet based on date/week/month? Jay Excel Worksheet Functions 1 January 10th 06 08:50 AM


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