Hey guys,
Wondering if you can help; I have a slightly specific one which I'm struggling to crack.
My workbook has 4 sheets:
1) 'ORIGINAL' (as an example, lets say A1 value = 'face', A2 value = 'cheese' and A3 value = 'head'
2) 'TEXT1'
3) 'TEXT2'
4) 'PRINTOUT'
In short I'm trying to save 'text1', 'text2' and 'printout' as individual files naming them by using cell values in the sheet named 'original'.
- Sheet 'TEXT1' needs to be saved as a text (delimited) file with the value of A1 (face.txt)
- Sheet 'TEXT2' needs to be saved as a text (delimited) file with the value of A2 (cheese.txt)
- Sheet 'PRINTOUT' needs to duplicate/create a copy and save (as a single excel sheet) with the value of A3 (head.xls)
(...ideally all at the click of a button with a macro assigned to it...)
-----------------------------
The list of commands would looks somthing like this (im just not sure how to write the VBA for it):
>active sheet 'text1'
>save as (.txt) with value of (sheetriginal! A1)
>active sheet 'text2'
>save as (.txt) with value of (sheetriginal! A2)
>active sheet 'printout'
>create copy in new book
>save as (.xls) with value of (previous document?!? sheetriginal! A2)
>close book (and therefore revert to the last workbook)
>active sheet 'original'
Any help doing this would be very very very much appriciated.
Cheers!
Wondering if you can help; I have a slightly specific one which I'm struggling to crack.
My workbook has 4 sheets:
1) 'ORIGINAL' (as an example, lets say A1 value = 'face', A2 value = 'cheese' and A3 value = 'head'
2) 'TEXT1'
3) 'TEXT2'
4) 'PRINTOUT'
In short I'm trying to save 'text1', 'text2' and 'printout' as individual files naming them by using cell values in the sheet named 'original'.
- Sheet 'TEXT1' needs to be saved as a text (delimited) file with the value of A1 (face.txt)
- Sheet 'TEXT2' needs to be saved as a text (delimited) file with the value of A2 (cheese.txt)
- Sheet 'PRINTOUT' needs to duplicate/create a copy and save (as a single excel sheet) with the value of A3 (head.xls)
(...ideally all at the click of a button with a macro assigned to it...)
-----------------------------
The list of commands would looks somthing like this (im just not sure how to write the VBA for it):
>active sheet 'text1'
>save as (.txt) with value of (sheetriginal! A1)
>active sheet 'text2'
>save as (.txt) with value of (sheetriginal! A2)
>active sheet 'printout'
>create copy in new book
>save as (.xls) with value of (previous document?!? sheetriginal! A2)
>close book (and therefore revert to the last workbook)
>active sheet 'original'
Any help doing this would be very very very much appriciated.
Cheers!