Results 1 to 2 of 2

Thread: [RESOLVED] Excel automation borders on a cell

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Location
    Australia
    Posts
    1,162

    Resolved [RESOLVED] Excel automation borders on a cell

    This is a copy of my post in VB6. I am looking for a VB6 solution
    Using late binding I have a subroutine to set the font aSize of cell aRange on a sheet named aFile, thus

    Code:

    Private Sub aCellFontSize(aFile, aRange, aSize)
    Set excelWorkbook = excelApp.Workbooks.Open(aFile)
    excelApp.Range(aRange).Font.Size = aSize
    excelWorkbook.Save
    excelWorkbook.Close
    End Sub

    This code does work!
    I would like the syntax in the same type of structure to enable me to pass a Border (say to the bottom edge). Tried and working code much appreciated -- late binding to allow app to be used on machines with different versions of Excel without any changes.
    Last edited by el84; Jul 30th, 2023 at 01:56 AM.
    Thanks all !

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Location
    Australia
    Posts
    1,162

    Re: [RESOLVED] Excel automation borders on a cell

    This was resolved in the Vb6 and earlier board.
    Thanks all !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width