Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Command buttons

I am very new to Excel and VBA. We are a small company with a large server
with documents everywhere that are hard to find. I have been tasked with
updating a workbook that was created in 1999 which provides a "house" for
various hyperlinks to the server to get documents. In order to jump from
workbook to workbook, there are command buttons on the worksheets and each
has a macro assigned to it to take it to another sheet or back to the main
sheet.

I have updated the hyperlinks in a new workbook, and created a userform with
command buttons and have managed to get the userform to open when the
workbook is opened.

How do I get all these command buttons to take me to the various sheets
which contain the hyperlinks to the documents on the server. I have four
sheets - Computer Information, Files, Office Information and Employee
Benefits. Then, once I am on one of the four sheets, how do I put a command
button on a worksheet that can take them back to the userform with all the
command buttons on it?

Thanks so much for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command buttons


Hello,

Hope I have read what you need right...

If you are just looking for command buttons then right click somewher
to the right of your help menu in Excel to bring a menu. Then choos
forms, select the rectangle one named "Button" and then drag to th
sheet - it will automatically ask which macro this refers to and thi
is where you choose either your "Back to last spreadsheet macro" or th
"Send me to the hyperlink spreadsheet one".

Hope this helps.

Joh

--
johncassel
-----------------------------------------------------------------------
johncassell's Profile: http://www.excelforum.com/member.php...fo&userid=2501
View this thread: http://www.excelforum.com/showthread.php?threadid=51622

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Command buttons

Thanks, I have the forms toolbar open, but I can't seem to get a command
button dragged to the form. Is there a trick to this? Then, once I get the
button onto the worksheet, can I assign some code to it to bring up the
userform that I created in VB?

"johncassell" wrote:


Hello,

Hope I have read what you need right...

If you are just looking for command buttons then right click somewhere
to the right of your help menu in Excel to bring a menu. Then choose
forms, select the rectangle one named "Button" and then drag to the
sheet - it will automatically ask which macro this refers to and this
is where you choose either your "Back to last spreadsheet macro" or the
"Send me to the hyperlink spreadsheet one".

Hope this helps.

John


--
johncassell
------------------------------------------------------------------------
johncassell's Profile: http://www.excelforum.com/member.php...o&userid=25016
View this thread: http://www.excelforum.com/showthread...hreadid=516225


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command buttons


Make sure that the forms toolbar is open in Excel (not VB, just so we
know we are on the same page - the button in the top right of the
toolbar should be "Aa") and then you just click the rectangle button
(your cursor will change to a cross) then click where you want it on
your sheet. As soon as you choose where to place it you will be asked
to provide the macro which the button will call.

You can skip this by pressing ESC and then if you want to assign a
macro to it later just right-click the button and select "Assign
Macro".

You can resize it or move it by rightclicking then pressing ESC then
drag/resize it.

John


--
johncassell
------------------------------------------------------------------------
johncassell's Profile: http://www.excelforum.com/member.php...o&userid=25016
View this thread: http://www.excelforum.com/showthread...hreadid=516225

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Command buttons

Ok, I did it! I have the button on the sheet. Now, I have created a user
form in VBA, I want this button to open that form. Can I write a macro to do
that? I can't find the form unless I go Visual Basic window. There, it is
under forms.

Once I get the button on my sheet to pull up this form, I have VB
commandbuttons on the user form that I want to pull up worksheets when you
click them. Can I assign macros to those buttons ( those are VB buttons, not
form buttons).

Thanks so much!

"johncassell" wrote:


Make sure that the forms toolbar is open in Excel (not VB, just so we
know we are on the same page - the button in the top right of the
toolbar should be "Aa") and then you just click the rectangle button
(your cursor will change to a cross) then click where you want it on
your sheet. As soon as you choose where to place it you will be asked
to provide the macro which the button will call.

You can skip this by pressing ESC and then if you want to assign a
macro to it later just right-click the button and select "Assign
Macro".

You can resize it or move it by rightclicking then pressing ESC then
drag/resize it.

John


--
johncassell
------------------------------------------------------------------------
johncassell's Profile: http://www.excelforum.com/member.php...o&userid=25016
View this thread: http://www.excelforum.com/showthread...hreadid=516225




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command buttons


create a macro like the following

Sub ShowForm()
UserForm1.show
End Sub

Where Userform1 is the name of the form you want to load.
John


--
johncassell
------------------------------------------------------------------------
johncassell's Profile: http://www.excelforum.com/member.php...o&userid=25016
View this thread: http://www.excelforum.com/showthread...hreadid=516225

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
Command Buttons Hoyas07 Excel Discussion (Misc queries) 2 February 11th 08 03:42 PM
Command buttons Jock W Excel Programming 1 February 22nd 05 12:35 PM
Command buttons Craig[_8_] Excel Programming 4 February 8th 04 03:56 AM
Command buttons Russell Stevenson Excel Programming 3 November 12th 03 02:57 AM
Control Buttons vs. Command Buttons Robert Gibson Excel Programming 1 October 13th 03 04:33 PM


All times are GMT +1. The time now is 09:49 PM.

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"