Naming cells

Smoakstack

Board Regular
Joined
Mar 28, 2011
Messages
79
I am lost. I have variable data coming into ranges ("c9:c214"). I also have columns that filter this variable data. I cannot however name these columns based on such data. Any ideas? ie. if c9=119, then cell m6 = cell d6.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Are you talking about having a dynamic range that automatically sizes dependant on variable number of rows of data?
 
Upvote 0
here is what I have.

Sub hide()
Dim B As Range
Dim c As Range
Application.ScreenUpdating = False
For Each c In Range("M216:NC216")
If (c.Value = 0) Then
c.EntireColumn.Hidden = True
Else
c.EntireColumn.Hidden = False
End If
Next c

For Each B In Range("b9:b214")
If (B.Value = 0) Then
B.EntireRow.Hidden = True
Else
B.EntireRow.Hidden = False
End If
Next B

Application.ScreenUpdating = True
End Sub

This is to hide cells if equal to 0. I need it so that if it equals 1, then cell m6 of range m6:oz6 = the cell of the contents next to it
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top