Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default alpha counter?

i want to process quite a large amount of data so i want to run the macro
for all records starting with A, then run it again for B & C & ... Z

how can i loop so it works through the alphabet on its own?

Cheers
JulieD


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default alpha counter?

This might give you a good starting point

Sub doalphabet()
For i = 65 To 90 Step 1
MsgBox Chr(i)
Next
End Sub

--
Don Guillett
SalesAid Software

"JulieD" wrote in message
...
i want to process quite a large amount of data so i want to run the macro
for all records starting with A, then run it again for B & C & ... Z

how can i loop so it works through the alphabet on its own?

Cheers
JulieD




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default alpha counter?

Hi Don

sorry what i need to do is open up 350 excel spreadsheets & copy one field
from them .. i have code to cycle all the files in a directory but i don't
want to do them all in one hit .. so what i want to do is process all the
files beginning with a & then save the workbook as a.xls then do the b and
save it as b.xls & then c ...
but i was trying to avoid having to type out a select statement that went
through all the letters of the alphabet and was wondering if there was a
short cut way of doing it.

Cheers
JulieD

"Don Guillett" wrote in message
...
This might give you a good starting point

Sub doalphabet()
For i = 65 To 90 Step 1
MsgBox Chr(i)
Next
End Sub

--
Don Guillett
SalesAid Software

"JulieD" wrote in message
...
i want to process quite a large amount of data so i want to run the

macro
for all records starting with A, then run it again for B & C & ... Z

how can i loop so it works through the alphabet on its own?

Cheers
JulieD






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
How do i use sumproduct if my lookup table is alpha or alpha num? Angie Excel Worksheet Functions 1 January 23rd 10 03:07 AM
How do I sort alpha neumeric fields that have an alpha suffix? Bob Sparks Excel Worksheet Functions 3 May 31st 09 05:17 AM
Counter Sdbenn90 Excel Discussion (Misc queries) 4 January 9th 06 11:43 AM
The colums changed from alpha to numeric how do you make it alpha worldmade Excel Discussion (Misc queries) 2 May 26th 05 03:44 PM
Counter Mark D[_4_] Excel Programming 0 July 17th 03 12:39 AM


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