Gord;
Thanks for getting back and the link. I will play with it a little
later. Most high school guidance departments are slowly but surely removing
Web Access. Along with the fact that they are cutting back on other software
tools we are having to learn new things.
I want to get a few thing resolved before I actually do the Mail
Merge.
What I have for Code so far is:
Sub ClassAAA()
Dim lastRow As Long
Dim SelCol as String
SelCol = InputBox("Enter Desired Column to Analyze!")
Selection.AutoFilter Field:=12, Criteria1:="AAA"
Workbooks.Add
ActiveCell.FormulaR1C1 = ""
ChDir "C:\ExcelExp"
ActiveWorkbook.SaveAs Filename:="C:\ExcelExp\NELabels.xls",
FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False
MsgBox "Class AAA Completed"
End Sub
What I need to know is Move The Column I select SelCol and others:
Column C to B
E to C
I to F
II to G
etc.
3000 Lines of code go here!
Workbooks.Add
ActiveCell.FormulaR1C1 = ""
ChDir "C:\ExcelExp"
ActiveWorkbook.SaveAs Filename:="C:\ExcelExp\TxLabels.xls",
FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False
MsgBox "Class AAA Completed"
End Sub
Once I get this new workbook created, I will worry about the Mail Merge.
Thanks for your assistance
Len
"Gord Dibben" wrote:
> Normally Word is used for mailmerges with Excel as the source database but see
> John Walkenbach's site for mailmerging with Excel alone.
>
> http://www.j-walk.com/ss/excel/tips/tip92.htm
>
>
> Gord Dibben MS Excel MVP
>
>
> On Wed, 4 Jul 2007 16:06:00 -0700, Len <(E-Mail Removed)> wrote:
>
> >I have a worksheet with 243 Columns. I have a Macro that analyzes data from
> >a fare number of columns.
> >
> >I just want to create a new worksheet with just the 21 columns I need to
> >print a mail merge document from.
> >
> >All my code is working except I cannot find out how to create the worksheet
> >in the macro and then display the merge form letters. I have seen other
> >people do this several years ago, so I know it can be done.
> >
> >A little green, only the third time I have worked with Excel, I am a real
> >time Macro Assembler Programmer.
> >
> >Thanks in Advance
> >
> >Len
>
>