enter into an excel cell...

M

Mark

hi

i'm trying to creat a simple routine, that works off a
toolbar button, all i want it to do is put an equals
sign '=' in the active cell and make it active so i can
use the number pad. i've got the equals thing worked out
activecell.value = "=", but the problem is trying to make
the cell active, so when i type in numbers, it doesn't
overwrite my equals sign

any help would be great

cheers

mark
 
C

Chip Pearson

Mark,

Use SendKeys. E.g.,


ActiveCell.Value = "="
SendKeys "{F2}"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com (e-mail address removed)
 

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