Hide a Column in Excel

dianecandicedianecandice Member Posts: 11
Hi,

if setting a value in excel is written as:

WorkSheet.Range('A1').Value := 'test';

what is the syntax for hiding the column A?

Thanks,
diane

Comments

  • SHardySHardy Member Posts: 38
    Try:

    WorkSheet.Columns('A').Hidden := True;
    Navision Version(s):
    Server - 3.70.B
    Client - 3.60
  • dianecandicedianecandice Member Posts: 11
    hi,

    thanks for the reply,

    i tried it but i get an error. seems like it does not accept any parameter for Columns()

    diane
  • SHardySHardy Member Posts: 38
    OK, try this then:

    WorkSheet.Range('A1').EntireColumn.Hidden := TRUE;
    Navision Version(s):
    Server - 3.70.B
    Client - 3.60
  • dianecandicedianecandice Member Posts: 11
    hi SHardy,

    it worked :D Thanks a lot :)

    Regards,
    Diane
Sign In or Register to comment.