Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default Open a Workbook using a Command Button

Is there a code for a command Button to open a Workbook to enter New Data
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Open a Workbook using a Command Button

Assign this macro to your button:

Sub dural()
Workbooks.Open Filename:=Application.GetOpenFilename()
End Sub
--
Gary''s Student - gsnu200843


"aussiegirlone" wrote:

Is there a code for a command Button to open a Workbook to enter New Data

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default Open a Workbook using a Command Button

Thankyou Gary, the macro works well to open the folder where the workbooks
are stored, but I still have to click onto the workbook I want to open. so
this macro is not exactly the way I want it to be, as it does not open the
actual workbook needed.

"Gary''s Student" wrote:

Assign this macro to your button:

Sub dural()
Workbooks.Open Filename:=Application.GetOpenFilename()
End Sub
--
Gary''s Student - gsnu200843


"aussiegirlone" wrote:

Is there a code for a command Button to open a Workbook to enter New Data

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
Click a command Button to open small worksheet. Markman Excel Discussion (Misc queries) 0 March 24th 09 08:21 PM
Send Open Spreadsheet using Command button [email protected] Excel Discussion (Misc queries) 0 August 23rd 07 02:08 PM
Open an Outlook folder when a user clicks on a command button ... Rob Keel Excel Discussion (Misc queries) 2 August 1st 05 09:23 AM
New button does not open the template workbook set up lucilene Excel Discussion (Misc queries) 3 July 20th 05 02:55 AM
Command Button crashing workbook? Kaval Excel Discussion (Misc queries) 1 July 15th 05 01:12 AM


All times are GMT +1. The time now is 07:34 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"