Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Workbook naming probz!

Hi all!

A quick question on the macro that I am attaching here with.
As we can see, I am just trying to copy contents from a worksheet
vextec' present in a workbook 'Vtec'.
into a newly added sheet in the workbook named as 'FEV'. However th
user has the freedom to save the new new sheet with a name into a tex
format, as can be seen in the macro.

But here is the problem. When the user names and saves the added shee
(*.fev, where the name is specified by the user), the workbook als
gets renamed as the *.fev file (specified by the user).
I do not want the workbook name to be changed at all and it has to hav
the same name 'vtec.xls'.

Any help on this would be greatly appreciated guys.

Thanks alot.

Arun.
Vtec corp

Attachment filename: sample.txt
Download attachment: http://www.excelforum.com/attachment.php?postid=54287
--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Workbook naming probz!

aiyer

You have no mention in your code of a new workbook

You add the new sheet into the same workbook that contains your vexte
sheet


If the new book is open

try changing
Set NewSh = Worksheets.Add

to

Set NewSh = workbooks("BookName").Worksheets.Add

If not open then you will need to add a new workbook before adding
new sheet or renaming sheet1 to fe

--
Message posted from http://www.ExcelForum.com

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
Workbook/worksheets protected- can I allow tab re-naming? Roady Excel Discussion (Misc queries) 2 August 17th 08 11:32 PM
naming a workbook the same as a cell entry des-sa[_2_] Excel Worksheet Functions 1 May 9th 08 12:08 PM
Naming a new Excel workbook in a macro GLS Excel Worksheet Functions 2 November 25th 06 11:18 PM
Auto naming Tabs in a Workbook Johnny Excel Discussion (Misc queries) 5 August 29th 06 04:42 PM
Workbook "Sheet" Naming comotoman Excel Discussion (Misc queries) 4 September 30th 05 09:49 PM


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