Jump to content
Fivewin Brasil

Excel - travar células


rclipper

Recommended Posts

Boa noite, eu faço assim :

cVAR1 := "C"+alltrim(str(nX1,3))+":C"+alltrim(str(nX2,3))

cVAR2 := "E"+alltrim(str(nX1,3))+":E"+alltrim(str(nX2,3))

cVAR3 := "G"+alltrim(str(nX1,3))+":G"+alltrim(str(nX2,3))

cCAB1 := "E"+cX_CAB +":F"+cX_CAB

cCAB2 := "G"+cX_CAB +":H"+cX_CAB

oFolha:unProtect("TEST123")

oFolha:Range(cVAR2):Locked:=.F. // LIBERA AS COLUNAS DE QTDE

oFolha:Range(cVAR3):Locked:=.F. //

oFolha:Range(cCAB1):Locked:=.F. // LIBERA CABECALHO FORNECEDOR

oFolha:Range(cCAB2):Locked:=.F. //

oFolha:Protect("TEST123")

CHARLES

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...