> Hi I have a problem with Excel that I would like to use a Macro to do.
> I am unfamilar with the syntax used in Excel so this task is proving
> to be somewhat tricky.
>
> I would like to copy all entries from one colum into a text file.
> Additionally, I would like to copy these files in such a way that I
> can use those files as directory names. For example, if the value in
> one of the column cells was "example", I would like to copy that value
> as "/value".
>
> I would also like the macro to automatically detect how long the
> column I am copying from is, so that instead of having to specify a
> range, the macro can be used in any file and it will automatically
> detect from what range the columns must be copied from. The only thing
> I would specify would be the column (which I would change int eh
> macro).
>
> How would I go about writng a Macro to perform such a task?
Some questions first... How do you want the cell values placed in the
file... each on their own line or all on one line with comma, tab, something
else delimited? Where does your data start in its row... row 1 (no header),
2 (with header), or some other row? Could there be any blank cells within a
column (other than at the end of the data) and, if so, how did you want them
treated? Did you really mean a forward slash in your example (you said
directory, which would be a back slash)? I'm guessing you said the value was
"example" so you meant to write "\example" and not "/value", right?
Rick
|