Question : Excel macro to update cell information

How can I use a macro to make the cell look at the next cell number?  For example: ='Mainframe MIS jobs'!X13 - - -  I want to use a macro to change it to ='Mainframe MIS jobs'!X14

Answer : Excel macro to update cell information

You could use another cell (let's say A1) to hold an offset or row number, and then use the formula:
=OFFSET('Mainframe MIS jobs'!$X$1,A1-1,0)
and then if you type 14 in A1, your cell will refer to X14, if you type 15 it refers to cell X15 and so on. If you still want a macro, it would then just alter the value in cell A1:
Range("A1").Value = Range("A1").Value + 1

Regards,
Rory

 
Random Solutions  
 
programming4us programming4us