LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default Placing data on worksheet

Try:

Dim rw As Long
rw = ActiveCell.Row
For Each SH In ActiveWorkbook.Worksheets
SH.Cells(rw, 1).Value = TextBox3.Text
SH.Cells(rw, 2).Value = TextBox5.Text
Next SH

Regards,
Greg

"Patrick Simonds" wrote:

Well that works but it presents me with a new problem.

Some how this thing needs to recognize what row I am on, and then place the
TextBox value in column A and B of that row on each sheet.

So something like SH.Cells(?,1).Value = TextBox3.Text where ? is the
current row.


"Leith Ross" wrote
in message ...

Hello Patrick,

You need only the CELLS qualifier with the sheet name to read or write
to a cell on the named worksheet. Here is the amended code.

________________________________

Private Sub CommandButton1_Click()

Module1.Unprotect_All_Sheets

'This UserForm is used to populate the worksheet

Dim SH As Worksheet
Dim rng As Range

For Each SH In ActiveWorkbook.Worksheets
SH.Cells(1, 1).Value = TextBox3.Text
SH.Cells(1, 2).Value = TextBox5.Text
Next SH

wb.Activate
ws.Select
c.Select

Unload Correct_Information
Unload Meeting_Attendance

End Sub
________________________________

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile:
http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=488397




 
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
Copying rows of data into new worksheet but placing data into colu Thalarctos Excel Discussion (Misc queries) 0 June 6th 10 04:01 AM
Placing external data in a worksheet Ken East End Excel Worksheet Functions 1 September 13th 08 08:04 PM
Searching for data and placing in new worksheet Davey T Excel Worksheet Functions 0 August 26th 07 06:12 PM
PLACING PIC IN WORKSHEET USING MACRO Glenn Excel Programming 1 April 27th 05 11:27 PM
Worksheet reference (i.e placing worksheet name in a cell) Roger Roger Excel Worksheet Functions 1 January 20th 05 03:40 PM


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