LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Consecutive numbering

On Apr 1, 8:50*pm, Roger Govier
wrote:
Hi Eara

Try this

Sub Numbersheets()
* * *Dim i As Long, ws As Worksheet
* * *i = 1
* * *Application.ScreenUpdating = False
* * *For Each ws In ThisWorkbook.Sheets
* * * * *ws.Range("B35") = i
* * * * *i = i + 1
* * *Next
* * *Application.ScreenUpdating = True
End Sub

To Install
Copy code above
Alt+F11 to invoke the VB Editor
Alt+I+M to insert a new module
Paste code into White Pane that appears
Alt+F11 to return to Excel

To Use
Alt+F8 to bring up Macros
Select macro name
Run

--
Regards
Roger Govier



Esradekan wrote:
On Apr 1, 2:36 pm, Subodh wrote:
You should use VBA code for this.
As far as my knowledge goes Worksheets functions won't work.


On Apr 1, 5:28 am, Esradekan wrote:


Hope someone can help.
How can I get one cell (B35) on each of 100 worksheets to number
consecutively?
TIA
Esra
(*-*)<- Hide quoted text -
- Show quoted text -
U should use VBA code.


Thank you for the reply. *Can you point me in the direction of how I
can get VBA code for this?


TIA
Esra
(*-*)<- Hide quoted text -


- Show quoted text -


Perfect, thank you Roger, most helpful

Esra
(*-*)<



 
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
Consecutive numbering Lella Excel Discussion (Misc queries) 12 September 26th 12 10:37 AM
consecutive numbering rafonss Excel Worksheet Functions 5 February 24th 09 02:16 PM
Auto consecutive numbering abchildress Excel Discussion (Misc queries) 2 October 3rd 07 09:59 PM
consecutive numbering joan Excel Discussion (Misc queries) 1 November 16th 05 06:41 PM
consecutive numbering [email protected] Excel Discussion (Misc queries) 1 October 10th 05 09:43 PM


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