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: 258
Default Placing data on worksheet

I am trying to get the contents of TextBox1 and Textbox2 to be placed into
the 1st and 2nd cell of the current row of all worksheets. I have tried to
alter the code below, but nothing seems to work.



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.rng(1, 1).Value = TextBox3.Text
SH.rng(1, 2).Value = TextBox5.Text
Next SH

wb.Activate
ws.Select
c.Select

Unload Correct_Information
Unload Meeting_Attendance

End Sub


 
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:25 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"