Hello,
I have written code in VBA-Access to open a blank Excel sheet and fill it with data. I am also able to change cell colors and the thickness of cell borders.
However, now I would like to disable the grey cell borders which are shown by default in the sheet. In other words: the sheet should look blank, just like a printed version. Is this possible in VBA? I would also like the window (within Excel) to maximize when the sheet is being opened. Is this possible too?
Some of the code I use to give you an idea:
All help/advice is welcome!
I have written code in VBA-Access to open a blank Excel sheet and fill it with data. I am also able to change cell colors and the thickness of cell borders.
However, now I would like to disable the grey cell borders which are shown by default in the sheet. In other words: the sheet should look blank, just like a printed version. Is this possible in VBA? I would also like the window (within Excel) to maximize when the sheet is being opened. Is this possible too?
Some of the code I use to give you an idea:
Code:
Set ExcelSheet = CreateObject("Excel.Sheet")
ExcelSheet.Application.Visible = True
ExcelSheet.ActiveSheet.cells(6, 1).Value = "Some text here"
ExcelSheet.ActiveSheet.Range("A1:B6").Font.Size = 8
ExcelSheet.ActiveSheet.Range("B7:C13").Interior.Color = 10026745
ExcelSheet.ActiveSheet.Range("B7:C13").Borders.Weight = 2
ExcelSheet.ActiveSheet.Columns("A:C").EntireColumn.AutoFit
All help/advice is welcome!