|
|
|
Помогите!! Ошибка в VBA
|
|||
|---|---|---|---|
|
#18+
здраствуйте уважаемые форумчане.....надо тут помочь......) в MS Excel при закрытии хочу сделать сортировку листов по возрастанию. Все листы в Книге имеют такие названия "0 ч." "1 ч." ......... "23 ч." Пытаюсь это сделать вот таким макросом If Sheets.Count > 1 Then For i = 0 To Sheets.Count - 1 S = Str(i) + " " + "ч." Sheets(S).Select 'тут код который осуществляет перестановку..... Next i End If Но выходит такая ошибка 'Runtime error 9' Subscript out of range Что делать??? Помогите плиз...... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.12.2007, 12:07:59 |
|
||
|
Помогите!! Ошибка в VBA
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. 4. 5. 6. Код: plaintext ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.12.2007, 12:11:24 |
|
||
|
Помогите!! Ошибка в VBA
|
|||
|---|---|---|---|
|
#18+
Читайте хелп. :) When numbers are converted to strings, a leading space is always reserved for the sign of number. If number is positive, the returned string contains a leading space and the plus sign is implied. Use the Format function to convert numeric values you want formatted as dates, times, or currency or in other user-defined formats. Unlike Str, the Format function doesn't include a leading space for the sign of number. То бишь, у вас S после Код: plaintext Код: plaintext Код: plaintext ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.12.2007, 12:28:12 |
|
||
|
|

start [/forum/topic.php?fid=61&msg=34990666&tid=2181770]: |
0ms |
get settings: |
5ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
20ms |
get topic data: |
7ms |
get forum data: |
1ms |
get page messages: |
29ms |
get tp. blocked users: |
1ms |
| others: | 197ms |
| total: | 273ms |

| 0 / 0 |
