LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Open file from a form

Private Sub TB_ImportIntoBook_Enter()
'MsgBox "This is enter"

Openwkb = Application.GetOpenFilename("FileToImportInto, *.xls")

Workbooks.Open (Openwkb)

TB_ImportIntoBook.Value = Openwkb

End Sub

I have the above code in a form. This code is in a text box and runs
when users enter in the text box. I can not open excel fie. If I
comment out the like "Workbooks.Open (Openwkb)" the form work fine but
also does not open the file. I want the file to open also then user
selects the file.

Can anyone help me with this. Is this possible or I am trying to do
something that is not possible.

Please let me know

Regards

Sonu.

 
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
VBA open file from a form jlclyde Excel Discussion (Misc queries) 3 April 27th 10 09:23 PM
Open Last Modified File form Location Kam Excel Discussion (Misc queries) 4 December 30th 09 05:47 PM
Open Form when file opened Dana Excel Discussion (Misc queries) 2 July 25th 08 04:36 PM
Open Form Automatically in Excel File Bejewell New Users to Excel 1 November 16th 05 06:18 PM
Need a psswd verification form to open when the file is opened Linking to specific cells in pivot table Excel Programming 6 May 31st 05 02:59 PM


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