Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Simple use of ActiveX Command Button -

Hello,
I am trying to use an activeX button to link to select a specific cell
within another sheet within the same workbook. That is, with the
Command button in Worksheet1, I want users to click it and be linked
to Cell B40 in Worksheet5.

Could you please let me know the basic code (that I will place in the
macro) that would achieve this?

Also, keeping in mind that I am new to using VBA, could you provide
step-by-step instructions for inserting the code?

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Simple use of ActiveX Command Button -

Drag a button off the Controls Toolbox toolbar. Doubleclick it. A new window
opens, so where the cursor is sitting paste the following:


Worksheets("Sheet5").Activate
Worksheets("Sheet5").Range("B40").Select

Close the newly opened window (no need to save). On the sheet, unclick the
Design icon on the Control Toolbox, to take it out of Design Mode and try
clicking the button. If it works, save the file which saves the new code.

--
p45cal


"Dave K" wrote:

Hello,
I am trying to use an activeX button to link to select a specific cell
within another sheet within the same workbook. That is, with the
Command button in Worksheet1, I want users to click it and be linked
to Cell B40 in Worksheet5.

Could you please let me know the basic code (that I will place in the
macro) that would achieve this?

Also, keeping in mind that I am new to using VBA, could you provide
step-by-step instructions for inserting the code?

Thanks!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX Command Button - Snap to Cell Boundaries Paul Kraemer Excel Discussion (Misc queries) 2 February 9th 10 09:15 PM
how to disable/enable command button(ActiveX) using macro enahs_naneek Excel Discussion (Misc queries) 1 February 5th 10 12:32 PM
Getting an ActiveX command button to do a spreadsheet function Givvie Excel Worksheet Functions 4 August 28th 07 11:18 AM
simple command button question David Excel Programming 2 July 11th 07 10:14 PM
ActiveX command button Dr.Schwartz Excel Programming 3 March 6th 05 06:41 AM


All times are GMT +1. The time now is 06:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"