View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
Sprinks Sprinks is offline
external usenet poster
 
Posts: 86
Default Proper Syntax Sought For NewBie Excel Programmer

Thanks, Jean-Yves. More "arrows in the quiver".

Best regards.

Sprinks

"Jean-Yves" wrote:

Hi,

1. refer to the value of a cell in column B, in the same row as the active
cell
cells(activecell.Row,2)

2.Assign a cell reference to a variable
Dim MyCellRef as String
MyCellRef =Activecell.address
Range(MyCellRef ).formula = )"
Or
Dim MyCell as Range
Set MyCell =Activecell 'or range("A1") for example

MyCell.formula = )"

'when finished
set MyCell = Nothing

Regards,

Jean-Yves



"Sprinks" wrote in message
...
How can I:

- refer to the value of a cell in column B, in the same row as the active
cell?
- Assign a cell reference to a variable, so that I can later assign it a
value, as in MyCellRef = someaddress; MyCellRef.Formula =

@sum(BegVal..EndVal)

Thanks for any and all assistance.
Sprinks