Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Guys, I'm trying to give active cell a name but it doesn't work. Please
help me! Sub CellName() Dim myFile, myKlas, myDiv, myName, rc, ref As String myFile = ActiveSheet.Name ' it's "D35" for example myKlas = myFile myDiv = ActiveCell.Value ' it's "South" for example myName = myKlas & myDiv ' the name I want to give the cell Row = ActiveCell.Row Col = ActiveCell.Column rc = "R" & Row & "C" & Col ref = myFile & "!" & rc ActiveWorkbook.Names.Add Name:=myName, RefersTo:="=" & ref & " """ End Sub -- If you are old enough, you have your future behind you. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Programming | |||
NEED VBA TO SELECT A CELL; NOTE THE CELL VALUE;COPYADJ CELL;FIND CELL VALUE IN A RANGE AND SO ON | Excel Programming | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) |