Selecting Cells With Visual Basic or Macro Code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Imagine random numbers in cells between a1 and d5.

In cell a7 you could type a number , like 3
And in cell a8 you could type a number, like 4

What is the macro (or VB) code to return a value in b8 which is the random
number found in row 3, column 4, i.e. d3?

I know the excel formula, but not the VB.

Many thanks
 
.... On second thought

Although its great, i'm half way there ...

How do I get the value to display in another cell on the sheet ?

If that statement is confusing, its clearer in my original question ..!

Many thanks
 
That sounds really cool

I'm gonna try it over the weekend - its 6pm on Friday now - I'm leaving the
office

But it looks good, so i'm sure i can play around with it !!!

ThaNKs !!
 

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

Back
Top