Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() this is my old code to cicling sheet in numeric name...(4500,4501,450 ecc...) Now my actual format name of sheet is: 4543-018769, 4543-008356 ecc... How to mofify this code? Sub LOOPSHEET() Application.ScreenUpdating = False Dim i As Long For i = 1 To Sheets.Count If IsNumeric(Sheets(i).Name) Then Sheets(i).Select Call ESTRATTI_CICSEA End If Next 'i Worksheets("SALDI").Select Application.ScreenUpdating = True End Su -- sal2 ----------------------------------------------------------------------- sal21's Profile: http://www.excelforum.com/member.php...nfo&userid=204 View this thread: http://www.excelforum.com/showthread.php?threadid=47111 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub LOOPSHEET()
Application.ScreenUpdating = False Dim i As Long For i = 1 To Sheets.Count If IsNumeric(Replace(Sheets(i).Name,"-","")) Then Sheets(i).Select Call ESTRATTI_CICSEA End If Next 'i Worksheets("SALDI").Select Application.ScreenUpdating = True End Sub Should work in xl2000 or later -- Regards, Tom Ogilvy "sal21" wrote in message ... this is my old code to cicling sheet in numeric name...(4500,4501,4503 ecc...) Now my actual format name of sheet is: 4543-018769, 4543-008356, ecc... How to mofify this code? Sub LOOPSHEET() Application.ScreenUpdating = False Dim i As Long For i = 1 To Sheets.Count If IsNumeric(Sheets(i).Name) Then Sheets(i).Select Call ESTRATTI_CICSEA End If Next 'i Worksheets("SALDI").Select Application.ScreenUpdating = True End Sub -- sal21 ------------------------------------------------------------------------ sal21's Profile: http://www.excelforum.com/member.php...fo&userid=2040 View this thread: http://www.excelforum.com/showthread...hreadid=471117 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA | Excel Worksheet Functions | |||
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? | Excel Worksheet Functions | |||
In 3 active sheets in wkbk, determine& display the # of sheets that have data | Excel Discussion (Misc queries) | |||
populating sheets based on data from parent sheets | Excel Discussion (Misc queries) | |||
Allocate Files to Sheets and Build a Master Sheet which Summarises All Sheets | Excel Programming |