Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selection Code
Consider the following:
Range(Cells(CurrentRow, 1), Cells(CurrentRow, 7)).Select Selection.Locked = False Selection.FormulaHidden = False Cells(CurrentRow, 9).Select Selection.Locked = False Selection.FormulaHidden = False Is there a way to combine the two select statements into just one? Thanks, Bernie |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selection Code
With Range(Cells(CurrentRow, 1), Cells(CurrentRow, 7))
.Locked = False .FormulaHidden = False End With With Cells(CurrentRow, 9) .Locked = False .FormulaHidden = False End With -- HTH RP (remove nothere from the email address if mailing direct) "bw" wrote in message ... Consider the following: Range(Cells(CurrentRow, 1), Cells(CurrentRow, 7)).Select Selection.Locked = False Selection.FormulaHidden = False Cells(CurrentRow, 9).Select Selection.Locked = False Selection.FormulaHidden = False Is there a way to combine the two select statements into just one? Thanks, Bernie |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selection Code
Hi, The following (not tested) doesn't really combine the two operations but it does avoid the need to select With Range(Cells(CurrentRow, 1), Cells(CurrentRow, 7)) .Locked = False .FormulaHidden = False End With With Cells(CurrentRow, 9) .Locked = False .FormulaHidden = False End With Don "bw" wrote in message ... Consider the following: Range(Cells(CurrentRow, 1), Cells(CurrentRow, 7)).Select Selection.Locked = False Selection.FormulaHidden = False Cells(CurrentRow, 9).Select Selection.Locked = False Selection.FormulaHidden = False Is there a way to combine the two select statements into just one? Thanks, Bernie |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selection Code
Thanks for the replies!
I should have been more specific in my question. The following two select statements: Range(Cells(CurrentRow, 1), Cells(CurrentRow, 7)).Select Cells(CurrentRow, 9).Select can be combined into a single statement as follows: Range("A1:G1,I1").Select So how do I express the single statement using the variable "CurrentRow"? Thanks, Bernie "bw" wrote in message ... Consider the following: Range(Cells(CurrentRow, 1), Cells(CurrentRow, 7)).Select Selection.Locked = False Selection.FormulaHidden = False Cells(CurrentRow, 9).Select Selection.Locked = False Selection.FormulaHidden = False Is there a way to combine the two select statements into just one? Thanks, Bernie |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
cell selection code | Excel Discussion (Misc queries) | |||
Help with selection code | Excel Programming | |||
Cell selection code | Excel Programming | |||
Need Code For Selection | Excel Programming | |||
Selection code | Excel Programming |