Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default need code to open new excel workbook

created a vb button in excel but want it to open an excisting workbook
tryed macro didnt work ? please help need code "beginner"


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default need code to open new excel workbook

Record a macro

Workbooks.Open Filename:="C:\bk1\h\excel2k\merge.xls"



--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"ivan" wrote in message . ..
created a vb button in excel but want it to open an excisting workbook
tryed macro didnt work ? please help need code "beginner"




  #3   Report Post  
Posted to microsoft.public.excel.programming
N10 N10 is offline
external usenet poster
 
Posts: 141
Default need code to open new excel workbook

Try this in yer button with an appropriate file name


Sub Macro1()
'
Workbooks.Open Filename:="C:\MYWORKBOOK.xls"

End Sub

best N10 :)


"ivan" wrote in message
. ..
created a vb button in excel but want it to open an excisting workbook
tryed macro didnt work ? please help need code "beginner"




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.762 / Virus Database: 510 - Release Date: 13/09/2004


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
how can i open a second workbook using a vba code [email protected] uk Excel Discussion (Misc queries) 10 November 28th 09 05:42 PM
Need VB code for workbook open to open a link Daniel Baker Excel Discussion (Misc queries) 2 August 18th 06 01:30 AM
Code to open new workbook Andrew[_27_] Excel Programming 3 January 22nd 04 01:24 PM
Workbook Open code Mike Tomasura Excel Programming 0 August 1st 03 05:32 PM
Workbook Open code Chip Pearson Excel Programming 0 August 1st 03 05:29 PM


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

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"