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

How do i make a button in a spreadsheet to open another spreadsheet,
without using hyperlinks?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default opening buttons

Aiden

Tools, Macro, Record New Macro then open the file you need
and stop the recording.

Choose View Toolsbars, Forms and draw a button on the
worksheet. Righ-click the button and choose Format and
make sure that it doesn't print.

Right_click the button again and assign the macro that you
recorded.

Regards
Peter
-----Original Message-----
How do i make a button in a spreadsheet to open another

spreadsheet,
without using hyperlinks?
.

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

Hi,
Add a module to your workbook and paste the code :

Public Sub openFile()
Dim strFileName As String
strFileName = Application.GetOpenFilename
Workbooks.Open strFileName
End Sub

and then add a button on the worksheet with Forms t.bar or add a custo
button to a t.bar andd assign the macro to this button.

that's all you have to d

--
Message posted from http://www.ExcelForum.com

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
Macro buttons opening saved macro Wasabijim Excel Discussion (Misc queries) 0 April 29th 09 08:39 PM
Option Buttons/Radio Buttons John Calder New Users to Excel 7 May 16th 08 03:51 AM
have toggle buttons but everytime print preview buttons move TinSandhu Excel Discussion (Misc queries) 1 October 11th 06 02:57 PM
opening different programs with excel macro buttons shrek Excel Worksheet Functions 0 September 30th 05 12:41 PM
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 08:40 PM.

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

About Us

"It's about Microsoft Excel"