Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Using Wildcard to Activate & Rename Workbooks

Hello,

I know next to nothing about VB, so please pardon if this is a ridiculous
question. I'm attemplting to record a macro that, once a user has 4
workbooks open (with 1 sheet each), the macro will automatically rename the
sheets, and eventually combine them into a single workbook. The 4 initial
workbooks will always begin with the same file name (the sheets will
incidently have the same name as well), but will always have a different
ending. I tried editing the macro so it looks for the beginning of a
workbook/sheet name, followed by a wildcard (see below). That was a no go.
Is this even possible with VB? Any guidance is appreciated.

Windows("otpfailsumclim3*").Activate
Sheets("otpfailsumclim3*").Select
Sheets("otpfailsumclim3*").Name = "Regional Summary"

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
Windows().Activate vs Workbooks().Activate Gary''s Student Excel Programming 4 November 6th 06 02:01 PM
Using Wildcard on Workbooks.Open Stever Excel Programming 1 October 12th 05 09:55 PM
Activate an Excel spreadsheet using wildcard name Dennis Excel Programming 1 September 9th 04 01:44 AM
Mass rename of worksheets/Workbooks Keith Willshaw Excel Programming 0 September 3rd 03 05:20 PM
Mass rename of worksheets/Workbooks Patrick Molloy[_9_] Excel Programming 0 September 3rd 03 05:10 PM


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