Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Textbox from 1st worksheet to textbox to other multiple sheets

I am trying to copy a textbox to another textbox in multiple sheets within
the workbook. Below is what I use to copy to one additional worksheet, but
not multiple worksheets after the 2nd. Can anyone help? Thanks

Worksheets(2).Range("A1") = Worksheets(1).TextBox1.Value

Linda
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Textbox from 1st worksheet to textbox to other multiple sheets

Do you want to copy to Range("A1") of each sheet or to TextBox1 of each sheet?

If to Range("A1"):

Sub cpyToRngA1()
For i = 2 To Sheets.Count
Worksheets(i).Range("A1") = Worksheets(1).TextBoxl1.Value
Next
End Sub

If to TB1 on each sheet:

Sub cpyToTB1()
For i = 2 To Sheets.Count
Worksheets(i).TextBox1.Value = Worksheets(1).TextBox1.Value
Next
End Sub


"LRay67" wrote:

I am trying to copy a textbox to another textbox in multiple sheets within
the workbook. Below is what I use to copy to one additional worksheet, but
not multiple worksheets after the 2nd. Can anyone help? Thanks

Worksheets(2).Range("A1") = Worksheets(1).TextBox1.Value

Linda

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Textbox from 1st worksheet to textbox to other multiple sheets

JLG, thanks for the input

The second scenario is what I am trying to do.....When copying the the code
it highlights, on the Worksheets(i).TextBox32.Value =
Worksheets(1).TextBox32.Value part.....


This is the code I am using with your help (which is deeply appreciated)

Sub TextBox32_LostFocus()
For i = 2 To Sheets.Count
Worksheets(i).TextBox32.Value = Worksheets(1).TextBox32.Value
Next
End Sub

Can you assist once more. Thanks

Linda

"JLGWhiz" wrote:

Do you want to copy to Range("A1") of each sheet or to TextBox1 of each sheet?

If to Range("A1"):

Sub cpyToRngA1()
For i = 2 To Sheets.Count
Worksheets(i).Range("A1") = Worksheets(1).TextBoxl1.Value
Next
End Sub

If to TB1 on each sheet:

Sub cpyToTB1()
For i = 2 To Sheets.Count
Worksheets(i).TextBox1.Value = Worksheets(1).TextBox1.Value
Next
End Sub


"LRay67" wrote:

I am trying to copy a textbox to another textbox in multiple sheets within
the workbook. Below is what I use to copy to one additional worksheet, but
not multiple worksheets after the 2nd. Can anyone help? Thanks

Worksheets(2).Range("A1") = Worksheets(1).TextBox1.Value

Linda

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
HELP! I Lost The Ability To Advance From TextBox To TextBox With the ENTER Or The TAB Keys Minitman[_4_] Excel Programming 0 February 22nd 05 08:50 PM
Textbox Bug? Missing/delayed update of textbox filled via VBA MarcM Excel Programming 0 November 4th 04 05:47 PM
Textbox Bug? Missing/delayed update of textbox filled via VBA MarcM Excel Programming 0 November 4th 04 05:43 PM
How to move cursor from one textbox control to another textbox con Tom Ogilvy Excel Programming 1 September 16th 04 03:42 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 02:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"