We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
This is the code for applying the style changes to each worksheet (the applymacro function does all of the work). For counter = 0 To SheetTitles.Count - 1 stdSheet = CType(xlSheets.Item(counter + 1), Excel.Worksheet) stdSheet.Name = SheetTitles((CountOfSheetsNeeded - 1) - counter) xlCells = stdSheet.Cells GenerateExcelFile(dsHolder((CountOfSheetsNeeded - 1) -counter).tables(0), xlCells) 'Fill in the data ApplyMacro(stdSheet) Next ApplyMacro header and line I'm getting an error on: Private Sub ApplyMacro (ByVal oSheet as Excel.Worksheet) oSheet.Range("A8").Select() End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.