Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying the data from the other worksheet


Hi..

I have to write one macro which will add a button allowing Copy
function. This button should allow us to copy the whole contents of
some another Excel file (containing single tab) into the currently open
file.

For this I also need to add a search box which will allow me to search
and select the file in windows after clicking on the above button and
then proceed further..

Can anyone help me for this please?

Thanks,
Sylvia


--
Sylvia
------------------------------------------------------------------------
Sylvia's Profile: http://www.excelforum.com/member.php...o&userid=30300
View this thread: http://www.excelforum.com/showthread...hreadid=500588

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Copying the data from the other worksheet

To get a filename from a user try the Application.GetOpenFilename method.

Sub a()
Dim FName As Variant
FName = Application.GetOpenFilename("Excel files (*.xls),*.xls")
If FName = False Then
MsgBox "User canceled"
Else
Workbooks.Open FName
End If
End Sub


--
Jim
"Sylvia" wrote in
message ...
|
| Hi..
|
| I have to write one macro which will add a button allowing Copy
| function. This button should allow us to copy the whole contents of
| some another Excel file (containing single tab) into the currently open
| file.
|
| For this I also need to add a search box which will allow me to search
| and select the file in windows after clicking on the above button and
| then proceed further..
|
| Can anyone help me for this please?
|
| Thanks,
| Sylvia
|
|
| --
| Sylvia
| ------------------------------------------------------------------------
| Sylvia's Profile:
http://www.excelforum.com/member.php...o&userid=30300
| View this thread: http://www.excelforum.com/showthread...hreadid=500588
|


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
Copying rows of data into new worksheet but placing data into colu Thalarctos Excel Discussion (Misc queries) 0 June 6th 10 04:01 AM
Copying data from a proteced worksheet WildWill[_2_] Excel Discussion (Misc queries) 1 March 24th 09 08:38 PM
Copying Data from One Worksheet to Another Jeremy Excel Discussion (Misc queries) 2 April 21st 08 01:32 PM
Copying data from several worksheets to one worksheet Ben Hur Excel Programming 5 February 23rd 05 07:44 AM
Copying row data to another worksheet Vick[_2_] Excel Programming 1 August 21st 04 03:56 PM


All times are GMT +1. The time now is 04:12 PM.

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"