How to use ActiveCell to mean a particular cell?

J

Jo

Hi,

How can I make ActiveCell below refer to SCell?

Dim SCell As Integer
Do Until ActiveCell.Value = 1
Range("J24").Select
Calculate
Loop

Thanks,
Jo
 
G

Guest

Jo,

How to use ActiveCell to mean a particular cell?

The activecell is the selected cell

Looking at your code unless calculate changes J24 its very likely you will
enter and endless loop. What in words are you trying to do?

Mike
 
J

Jo

Jo,

How to use ActiveCell to mean a particular cell?

The activecell is the selected cell

Looking at your code unless calculate changes J24 its very likely you will
enter and endless loop. What in words are you trying to do?

Mike








- Show quoted text -

Thanks Mike, I found it.......
 
B

Bob Phillips

Jo,

SCell is a number variable, not a cell variable. Anyway, it is totally
superfluous.

The code loops until miraculously the Activecell becomes 1. Unless you have
some sort of feeding updating J24 it never will.

What exactly do you want to do?

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top