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


i have a form to make an order, but i have to get an ordernumber fro
another excel workbook.
now i want to make a button to open the workbook that contains th
ordernumbers and make it the active workbook.

can anyone help me with thi

--
eyesonly196
-----------------------------------------------------------------------
eyesonly1965's Profile: http://www.excelforum.com/member.php...fo&userid=3419
View this thread: http://www.excelforum.com/showthread.php?threadid=54124

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open an other workbook to eddit


Try

Workbooks.Open Filename:="YourFileLocationHere"

where you file location might be as follows:
"C:\Folder1\Folder2\SubFolder1\FileName"

An easy way to make sure you get the correct file name is to do a
Record Macro when selecting the file and using that code.

eyesonly1965 Wrote:
i have a form to make an order, but i have to get an ordernumber from
another excel workbook.
now i want to make a button to open the workbook that contains the
ordernumbers and make it the active workbook.

can anyone help me with this



--
Ikaabod
------------------------------------------------------------------------
Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371
View this thread: http://www.excelforum.com/showthread...hreadid=541244

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open an other workbook to eddit


that is what i had found out but the problem is that i can't make the
new workbook active without closing my form, and this is what i'm
trying to prevent.


thanx for the tip


--
eyesonly1965
------------------------------------------------------------------------
eyesonly1965's Profile: http://www.excelforum.com/member.php...o&userid=34199
View this thread: http://www.excelforum.com/showthread...hreadid=541244

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open an other workbook to eddit


I see what you're getting at. Check out this post:

http://www.excelforum.com/showpost.p...28&postcount=2

I think that should put you on the right track.


eyesonly1965 Wrote:
that is what i had found out but the problem is that i can't make the
new workbook active without closing my form, and this is what i'm
trying to prevent.


thanx for the tip



--
Ikaabod
------------------------------------------------------------------------
Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371
View this thread: http://www.excelforum.com/showthread...hreadid=541244

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open an other workbook to eddit


well finaly i got it. and it works

the final code is:
-Private Sub cmdBestelnummerOpvragen_Click()

Workbooks.Open Filename:="C:\Documents and
Settings\leon\Bureaublad\groupagelijst.xls"
frmBestellijst.Hide

End Sub-

but the next problem accurred.
when i closed my ordernumber workbook, the workbook that i am working
in showed the sheet and not my form.
and this is what i'm preventing to show to the users, so when i close
my openend workbook my form should apear on top again.

i have fixed this by adding the following code to my workbook.

-Private Sub Workbook_WindowActivate(ByVal Wn As Window)
frmBestellijst.Show
End Sub
-


so now it works the way i want it, thanx for the help


--
eyesonly1965
------------------------------------------------------------------------
eyesonly1965's Profile: http://www.excelforum.com/member.php...o&userid=34199
View this thread: http://www.excelforum.com/showthread...hreadid=541244



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 to: Open closed workbook/Search data tables/Return data to open workbook Hugh Adams Excel Discussion (Misc queries) 0 August 18th 10 02:04 PM
Opening Excel, Book1 opens, remains open with other workbook open DanieB Excel Discussion (Misc queries) 0 September 3rd 09 08:23 AM
how do i open a data workbook when i open a timesheet workbook [email protected] uk Excel Discussion (Misc queries) 2 January 4th 09 04:50 PM
excel 2003 saved file will not open without a blank workbook open Bob Excel Discussion (Misc queries) 4 November 11th 06 04:24 PM
How do you program so that Workbook B cannot be open unless Workbook A is open? Plus I need to validation Marcello do Guzman[_3_] Excel Programming 2 December 5th 04 06:50 AM


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