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: 102
Default Multiple destination cells for data entry

Hi,
I want data entered on a user form to be sent to cells on two worksheets.
The following code is what I have for sending data to one worksheet. How
alter the code so data is sent to sheet 1 and sheet 2 ?

Private Sub CommandButton1_Click()
Dim LastRow As Object

Set LastRow = Worksheets("Sheet1").Range("A6000").End(xlUp)

If Me.ComboBox1.Value < "" And Not IsNull(Me.ComboBox1) And
Me.TextBox1.Value < "" And Not IsNull(Me.TextBox1) Then
LastRow.Offset(2, 0).Value = ComboBox1.Text
LastRow.Offset(2, 3).Value = TextBox1.Text

End If
End Sub
--------------
Regards
gregork


 
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
Multiple data entry with multiple results Jafferi[_2_] Excel Worksheet Functions 2 March 27th 09 05:06 AM
How to parse long spaced entry into multiple cells??? Robert Blass Excel Worksheet Functions 10 March 21st 09 03:37 PM
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing [email protected] Excel Discussion (Misc queries) 0 March 20th 08 12:45 PM
Cell Entry That Locks Selected Cells From Any Data Entry. ron Excel Worksheet Functions 5 February 16th 07 09:52 PM
data entry on multiple worksheets diosdias Excel Discussion (Misc queries) 1 December 7th 04 05:33 PM


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