Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default rename a worksheet adding a sequential number at the end

Hi All

I need to create a code and Im not sure if its even possible your help
would be greatly appreciated:

Excel 2003
Relevant part of current code:

ActiveSheet.Name = "MBA" & " " & Sheets("Sheet2").Range("A2").Value

I need to:

- add a check into my macro to see if the new worksheet name "MBA Wk1"
already exists

- if TRUE, then I need to check if there are any values on
Sheets("Sheet2").Range("C131:C150"),

- if also TRUE then I need to create the new worksheet with a sequential
number added to the end of the new worksheet name e.g:

MBA Wk1 becomes MBA Wk1 (2),

otherwise call the next macro week2()

The macro may be run a few times as data is revised - therefore it needs to
create update the sequential number e.g. MBA Wk1 (3) next time etc.

--
Thank for your help
BeSmart
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
need help w/sequential invoice number on excel worksheet Landfillpark Excel Worksheet Functions 1 March 3rd 06 11:48 PM
Sequential number - adding and deleting rows Suzan Excel Discussion (Misc queries) 2 January 4th 06 09:36 PM
sequential number Malissa Excel Discussion (Misc queries) 3 August 15th 05 09:54 PM
sequential number Mike W New Users to Excel 4 May 12th 05 11:38 PM
Rename Worksheets to Sequential Dates nchristus Excel Programming 3 August 30th 04 11:15 PM


All times are GMT +1. The time now is 02:34 PM.

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"