Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how would you do this without selecting? or by using the index number 1-3
instead of the sheet names? Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select With Range("m28") ..Value = "test" ..Font.Bold = True End With -- Gary |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sheets(Array(Worksheets(1).Name, Worksheets(2).Name,
Worksheets(3).Name)).Select With Range("m28") ..Value = "test" ..Font.Bold = True End With -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "GKeramidas" wrote in message ... how would you do this without selecting? or by using the index number 1-3 instead of the sheet names? Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select With Range("m28") .Value = "test" .Font.Bold = True End With -- Gary |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks for the reply bob.
2 things this doesn't put the value test into all 3 sheets, only the active one. also, is there way to enter a value into all 3 sheets without selecting? -- Gary "Bob Phillips" wrote in message ... Sheets(Array(Worksheets(1).Name, Worksheets(2).Name, Worksheets(3).Name)).Select With Range("m28") .Value = "test" .Font.Bold = True End With -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "GKeramidas" wrote in message ... how would you do this without selecting? or by using the index number 1-3 instead of the sheet names? Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select With Range("m28") .Value = "test" .Font.Bold = True End With -- Gary |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry Gary, this works
Dim i As Long For i = 1 To 3 With Worksheets(i).Range("M28") .Value = "test" .Font.Bold = True End With Next i -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "GKeramidas" wrote in message ... thanks for the reply bob. 2 things this doesn't put the value test into all 3 sheets, only the active one. also, is there way to enter a value into all 3 sheets without selecting? -- Gary "Bob Phillips" wrote in message ... Sheets(Array(Worksheets(1).Name, Worksheets(2).Name, Worksheets(3).Name)).Select With Range("m28") .Value = "test" .Font.Bold = True End With -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "GKeramidas" wrote in message ... how would you do this without selecting? or by using the index number 1-3 instead of the sheet names? Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select With Range("m28") .Value = "test" .Font.Bold = True End With -- Gary |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi bob:
that's what i am using, just thought there might be a way to do it all at once. thanks -- Gary "Bob Phillips" wrote in message ... Sorry Gary, this works Dim i As Long For i = 1 To 3 With Worksheets(i).Range("M28") .Value = "test" .Font.Bold = True End With Next i -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "GKeramidas" wrote in message ... thanks for the reply bob. 2 things this doesn't put the value test into all 3 sheets, only the active one. also, is there way to enter a value into all 3 sheets without selecting? -- Gary "Bob Phillips" wrote in message ... Sheets(Array(Worksheets(1).Name, Worksheets(2).Name, Worksheets(3).Name)).Select With Range("m28") .Value = "test" .Font.Bold = True End With -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "GKeramidas" wrote in message ... how would you do this without selecting? or by using the index number 1-3 instead of the sheet names? Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select With Range("m28") .Value = "test" .Font.Bold = True End With -- Gary |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Group under Data Group and Outline Data not working. Help. | Excel Worksheet Functions | |||
Search For function in discussion group not working | Excel Discussion (Misc queries) | |||
Group Sheets | Excel Discussion (Misc queries) | |||
Working with a large group of numbers | Excel Worksheet Functions | |||
Working with large group of numbers in a column | Excel Programming |