Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How to change a sheet name without opening the workbook

On Sep 9, 10:09*pm, Andrew wrote:
On Sep 9, 8:59*am, GS wrote:









Andrew pretended :


Hello,
I am trying to figure out how, or if it is possible, to change the
name of the first sheet of each workbook in a folder. *I have figured
out a way to do this by having a macro open each file, but this is
time consuming, AND, there is a macro in each workbook which tries to
run each time the workbook is opened. *So, I would like to do this
without opening the files. *Any ideas?


thanks,
Andy


You might be able to do this using ADO and SQL to rename a table since
ADO treats each worksheet in an Excel file as a table. You can download
working samples on how to work with closed files using ADO he


*http://www.appspro.com/conference/Da...rogramming.zip


HTH


--
Garry


Free usenet access athttp://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


Thank you. *I will look at some examples and see how this is done.

Andy


If you are on Excel 2007/2010 you could also directly manipulate the
XML in the zipped xlsx file.
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
Opening a workbook to a certain sheet [email protected] Excel Programming 2 September 10th 07 08:06 PM
Opening Workbook to a specific sheet Carlee Excel Programming 2 April 11th 07 08:16 PM
Opening a workbook to a chosen sheet? renderingsanity Excel Discussion (Misc queries) 1 March 29th 06 02:17 PM
Change Date without Opening the Workbook ad2maso Excel Worksheet Functions 0 February 3rd 06 11:34 AM
Hyperlinks and opening any sheet a workbook Angelo Battistoni Excel Programming 2 October 5th 05 02:17 PM


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