Results 1 to 2 of 2

Thread: VB & Excel Template Formatting

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Southern California
    Posts
    3

    Question VB & Excel Template Formatting

    I have a Excel Template that I am trying to modify with commands like this:

    obWorkSheet.Cells(10, "C").Value = txtCustomerName.text

    That works great. The problem is I am loosing the formatting when I save the excel file.
    obExcelApp.Save ("C:\INVOICE.XLS")

    By loosing formatting I mean, the row heights are set back to default, and I can see the grid lines that were turned off in the original template.

    How can I preserve my formatting settings????

    Help??

    Jeremy

  2. #2
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Don't know why its doing that..


    There are a number of ways to save stuff....
    Maybe its the wrong way I use."

    VB Code:
    1. Workbooks("stdcost.xls").Close saveChanges:=true

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