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 worksheet


Hi
I want to build a VBA application:
I have an excel workbook containing 7 blank worksheet.In my VBA form,I
want to enter 7 names of worksheets(not belonging to my workbook),the
worksheet corresponding to the first entered worksheet name should be
copied to my blank workbook(sheet1),the second entered worksheet name
should be copied to my blank workbook(sheet2)...
how can i do it?


--
engnouna
------------------------------------------------------------------------
engnouna's Profile: http://www.excelforum.com/member.php...o&userid=32203
View this thread: http://www.excelforum.com/showthread...hreadid=519505

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default copying worksheet

Dim v as Variant
With Userform1
v = Array(.Textbox1.text, .textbox2.text, . . .,.textbox7.text)
End With
With thisworkbook
workbooks("OtherWorkbook.xls").Worksheets(v).Copy _
After:=.Worksheets(.worksheets.count)
End With

--
Regards,
Tom Ogilvy

"engnouna" wrote in
message ...

Hi
I want to build a VBA application:
I have an excel workbook containing 7 blank worksheet.In my VBA form,I
want to enter 7 names of worksheets(not belonging to my workbook),the
worksheet corresponding to the first entered worksheet name should be
copied to my blank workbook(sheet1),the second entered worksheet name
should be copied to my blank workbook(sheet2)...
how can i do it?


--
engnouna
------------------------------------------------------------------------
engnouna's Profile:

http://www.excelforum.com/member.php...o&userid=32203
View this thread: http://www.excelforum.com/showthread...hreadid=519505



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 the active worksheet to another worksheet in the same work queenmaam Excel Worksheet Functions 5 March 25th 08 06:56 PM
Looking up a variable in one worksheet and copying information from another column to another worksheet?? Brad Torken Excel Discussion (Misc queries) 2 December 10th 06 06:02 AM
Copying a worksheet witrh protected cells to a new worksheet John Excel Worksheet Functions 2 February 1st 06 02:19 PM
Multiple Worksheet copying to a master worksheet Jayhawktc[_3_] Excel Programming 4 August 11th 04 03:35 PM
Copying Worksheet triggers Click event of combobox on another worksheet Robert[_20_] Excel Programming 0 January 23rd 04 07:40 PM


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