Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Excel Active Cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gazza - 22 Mar 2006 00:43 GMT
I have a Visual Basic command button on an Excel worksheet. When the command
button is clicked I need the code to make use of the column number of the
active cell. How is this found?
Gary Keramidas - 22 Mar 2006 00:58 GMT
try ActiveCell.Column

this will return 1 for column A

Signature

Gary

>I have a Visual Basic command button on an Excel worksheet. When the command
> button is clicked I need the code to make use of the column number of the
> active cell. How is this found?
Jim Thomlinson - 22 Mar 2006 01:01 GMT
Try something like this

MsgBox ActiveCell.Column

activecell.entirecolumn.select

or whtatever...

Signature

HTH...

Jim Thomlinson

> I have a Visual Basic command button on an Excel worksheet. When the command
> button is clicked I need the code to make use of the column number of the
> active cell. How is this found?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.