PC Review


Reply
Thread Tools Rate Thread

Absolute beginner

 
 
=?Utf-8?B?QW50?=
Guest
Posts: n/a
 
      29th Jun 2007
Hi,

I'm an absolute beginner with excel. I've had a lot of experience with VB6,
but code aside, it's a different beast!

How do you turn a cell into a button that responds to a click event in which
I can write code? Or how is a similar thing done. Events! I need Events!

Thanks very much
your humbly
Ant
 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      29th Jun 2007
> I'm an absolute beginner with excel. I've had a lot of experience with
> VB6,
> but code aside, it's a different beast!
>
> How do you turn a cell into a button that responds to a click event in
> which
> I can write code? Or how is a similar thing done. Events! I need Events!


You can put a CommandButton right on the spreadsheet and then work with
that. If you haven't already done so, select View/Toolbars/Visual Basic from
Excel's menu bar. Click on the Control Toolbox icon from the Visual Basic
tool bar (looks like a wrench and hammer crossed over each other). This will
add the Control Toolbar to the spreadsheet's tool bars. From the Control
Box, click on the CommandButton icon and draw it onto your spreadsheet (size
it as necessary). If you are not already in Design Mode, select the Design
Mode icon from the Visual Basic tool bar (it's to the right of the Control
Toolbox icon). Once that is done, right click the CommandButton and select
Properties from the popup menu; double-click it to reach its event coding
window.

Rick

 
Reply With Quote
 
=?Utf-8?B?QW50?=
Guest
Posts: n/a
 
      29th Jun 2007
Hi Rick,

Thanks very much! That'll get me started

Cheers

Ant

"Rick Rothstein (MVP - VB)" wrote:

> > I'm an absolute beginner with excel. I've had a lot of experience with
> > VB6,
> > but code aside, it's a different beast!
> >
> > How do you turn a cell into a button that responds to a click event in
> > which
> > I can write code? Or how is a similar thing done. Events! I need Events!

>
> You can put a CommandButton right on the spreadsheet and then work with
> that. If you haven't already done so, select View/Toolbars/Visual Basic from
> Excel's menu bar. Click on the Control Toolbox icon from the Visual Basic
> tool bar (looks like a wrench and hammer crossed over each other). This will
> add the Control Toolbar to the spreadsheet's tool bars. From the Control
> Box, click on the CommandButton icon and draw it onto your spreadsheet (size
> it as necessary). If you are not already in Design Mode, select the Design
> Mode icon from the Visual Basic tool bar (it's to the right of the Control
> Toolbox icon). Once that is done, right click the CommandButton and select
> Properties from the popup menu; double-click it to reach its event coding
> window.
>
> Rick
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
absolute beginner ant! Microsoft Access Getting Started 9 14th Apr 2009 03:06 AM
absolute beginner ant! Microsoft Access Getting Started 5 9th Apr 2009 01:23 PM
Absolute Beginner japin0@yahoo.com Microsoft ASP .NET 9 9th Sep 2005 12:17 AM
Re: Absolute beginner needs help.......... Shiner452 Microsoft Access Getting Started 1 20th May 2004 03:40 PM
Absolute beginner needs help.......... The G Man Microsoft Access Getting Started 0 20th May 2004 10:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:22 PM.