Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Taking data from other workbook ina macro

Hello...

I have a worbook with huge data.
I have to update data in this workbook using other workbook. I have created
one useform which performs lot of activities.

For one specific requirement, I want one field on userform where user will
enter name of the workbook (with its path) from where I have to pick data.
Then after getting that information, I will use that workbook and its data in
my macro.

Is it possible to add this feature on userform?

Thank You

PRML
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Taking data from other workbook ina macro

Put a button on the form to call:

Dim s As String
Sub dural()
s = Application.GetOpenFilename
End Sub

s will have the full path/filename
--
Gary''s Student - gsnu200802


"Pawan" wrote:

Hello...

I have a worbook with huge data.
I have to update data in this workbook using other workbook. I have created
one useform which performs lot of activities.

For one specific requirement, I want one field on userform where user will
enter name of the workbook (with its path) from where I have to pick data.
Then after getting that information, I will use that workbook and its data in
my macro.

Is it possible to add this feature on userform?

Thank You

PRML

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Taking data from other workbook ina macro

You need to add a Textbox to the userform. then like gary said have the
click macro for the text box call GetOpenFilename and put the filename into
the textbox. GetOpenFilename will only return a filename that exists. If
you want an option to either get an existing filename or create a new
filename then use GetSaveAsFilename instead of GetOpenFileName.


"Pawan" wrote:

Hello...

I have a worbook with huge data.
I have to update data in this workbook using other workbook. I have created
one useform which performs lot of activities.

For one specific requirement, I want one field on userform where user will
enter name of the workbook (with its path) from where I have to pick data.
Then after getting that information, I will use that workbook and its data in
my macro.

Is it possible to add this feature on userform?

Thank You

PRML

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
Taking w/sheets out of a workbook gail Excel Discussion (Misc queries) 5 May 19th 10 10:58 AM
Excel Macro for taking data external data and populating it on a sheet and deleting unwanted data [email protected] Excel Programming 3 November 8th 07 05:59 AM
Taking specific rows from on workbook to create another workbook Michelle Excel Worksheet Functions 1 May 12th 07 04:54 AM
Taking a workbook out of Data Tracking will Excel Worksheet Functions 0 April 17th 07 03:52 PM
taking data at end of column and sending it to cell in another workbook gdecat Excel Programming 1 June 14th 05 07:22 PM


All times are GMT +1. The time now is 11:45 PM.

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"