Escolar Documentos
Profissional Documentos
Cultura Documentos
Macro Bloquear VBProject Colocar Dois Pontos em TextBox Comando Find Comando para abrir internet Comando para executar o flash player
Comando Split
Como Usar SpinButton Confirmando antes de executar uma macro Cont Valores
Sub nome_da_macro()Application.ActivateMicrosoftApp Ind Dim QualArquivoQualArquivo = Application.GetOpenFilenam Dim Nome As StringSub Nome_da_Macro()Nome = InputBo Sub nome_da_macro()
W orkbooks.Open FileName:=c:\pas Sub BloquearVBProject() If Val(Application.Version) > 8 Th Private Sub Txt_Debito_KeyPress(ByVal KeyAscii As MSFor Private Sub Txt_Mat_Exit(ByVal Cancel As MSForms.Return ActiveWorkbook.FollowHyperlink "http://www.google.com" Plan1.ShockwaveFlash1.Play Dim cString As VariantDim val1 As StringDim val2 As Stringc Dim linha As IntegerPrivate Sub SpinButton1_SpinDown()If Public Sub SolicitandoConfirmao()
If MsgBox(Deseja Con Sub Cont_Valores()Dim Cont As IntegerDim i As IntegerCon
Controle Listbox
Copiando e colando com uma Macro Criando mais de uma pasta Criando um arquivo de texto Criando um campo de pesquisa em um form Criando um evento para determinar um tempo Criando um Item na barra de menus Criando uma pasta Desbloquear VBProject Deslocando para outra guia de planilha Desprotegendo uma planilha com senha Desprotegendo uma planilha com uma Macro
Sub nome_da_macro()
Range(A1:A10).Copy
Range(B2).S Sub nome_da_macro()Dim fso, f,f1,f2,f3 Set fso = CreateO Sub nome_da_macro()Set fs = CreateObject("Scripting.FileS Dim Search As StringDim Searchlen As StringSearch$ = UC Public Sub Espere(ByVal QtdSegundos As Long)Static Incio Option ExplicitPrivate Sub add_menu() Dim NewItem As O
Sub nome_da_macro()Dim fso, f Set fso = CreateObject("S Sub DesbloquearVBProject() If Val(Application.Version) > 8 Sub nome_da_macro()
Sheets(Plan1).Select
Range(A1).S Sub nome_da_macro ()
Dim i As Integer, j As Integer, k As Sub nome_da_macro()
ActiveSheet.Unprotect password:=s
Sub Erro_Fatal() senha = "EU" If Application.InputBox("D Sub exclui_repetidos()Sheets("Plan1").SelectCells(1, 1).Sele Sub excluir()Application.DisplayAlerts = FalseActiveWindow
Excluir Repetidos
Executando um UserForm Exemplo de Array Exemplo de loop Do While Exemplo de Vetor Exibindo as guias de planilha Exibindo o Nome da Plan Exibindo uma mensagem de saudao ao abrir a Planilha Fazendo uma soma atravs de uma InputBox Fazendo uma soma na mesma clula
Sub nome_da_macro()UserForm1.showEnd Sub Sub pais_array()Dim array_pais(4) As StringDim cont As Int Sub SepararVendas()Application.ScreenUpdating = FalseRa Sub Vetor()Dim i As IntegerDim j As IntegerDim aRow As Int Sub nome_da_macro()ActiveWindow.DisplayWorkbookTabs Sub NomeDaPlan()MsgBox Plan1.NameEnd Sub Sub Auto_Open()MsgBox "Seja Bem Vindo " & [Plan1!a1] & Sub nome_da_macro()Dim Numero1 As IntegerDim Numero Option ExplicitPublic Valores As Variant, Interv As Range
Option ExplicitPrivate Type RECT Left As Long Top As Private Sub Form_Load() KeyPreview = TrueEnd SubPrivate S
Private Sub CommandButton1_Click()Dim DIA As StringDim Private Sub UserForm_QueryClose(Cancel As Integer, Clos Sub Nome_da_Macro ()Range("a1").SelectDo If IsEmpty(A Sub nome_da_macro()BeepEnd Sub Dim proximosegundo As DateSub aHora() proximosegund Sub nome_da_macro()Application.StatusBar = "Bom dia"En
Inserindo um Timer no excel Inserindo um valor em uma clula Inserindo um valor em uma clula usando InputBox Inserindo uma Foto no Excel Inserindo uma mensagem existente em uma clula qualquer Inserindo uma mensagem na tela Inserir itens em uma combobox Limpando uma seleo
Sub MudaNomeDaPlan()Plan1.Name = "Novo Nome"End S Sub nome_da_macro()ActiveWindow.DisplayWorkbookTabs Sub nome_da_macro() Application.Visible = FalseEnd Su Sub pararHora() On Error Resume Next Application.OnT Sub auto_open()MsgBox "ESTA UMA PLANILHA TRIAL, V
Procv no VBA
Protegendo uma planilha com uma Macro Retirando o texto da barra de status Salvando e fechando o excel ativo Salvando informaes de uma planilha em txt Salvando uma planilha Salvando uma planilha com outro nome Selecionar intervalo dentro de uma clula Senhas nas Abas da Planilha
Sub nome_da_macro()
ActiveSheet.Protect DrawingObjects Sub nome_da_macro()Application.StatusBar = falseEnd Su Sub nome_da_macro() ThisWorkbook.Save ThisWorkbo Sub SalvarArquivosTexto()'Voce escolhe o caracter separad Sub nome_da_macro()ActiveWorkbook.SaveEnd Sub Public Sub salvarpasta()Dim nome As Stringnome = InputBo Sub selecionar()range([e2]).SelectEnd Sub Private Sub Worksheet_Activate()Cells.Select Selection.E
Private Function TiraAcento(LetraAcentuada As String, TirarC Dim DIA As StringDim MES As StringDim ANO As StringDIA =
Public Sub TestIF()Dim Resp As StringResp = InputBox("Qu Dim Resp As StringResp = InputBox("Qual o seu time??",
acro()Application.ActivateMicrosoftApp Index:=0End Sub QualArquivo = Application.GetOpenFilename("Arquivos de texto (*.txt),*.txt", , "TUDO SOBRE EXCEL - Escolha o arquivo para Desproteger") 'Caixa de ngSub Nome_da_Macro()Nome = InputBox("Digite o nome", "aviso")' Verifica se campo est em brancoIf Nome = "" ThenExit SubEnd IfIf Nome <> "" acro()
W orkbooks.Open FileName:=c:\pasta1.xls
End Sub Project() If Val(Application.Version) > 8 Then SendKeys _ "%{F11}%fp^{TAB}%b{TAB}" & _ "SENHA" & "{TAB}" & "SENHA" & "{TAB}{ENT Debito_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)Txt_Debito.MaxLength = 5 If Len(Txt_Debito) = 2 Then Txt_Debito.Text = Txt_Debit Mat_Exit(ByVal Cancel As MSForms.ReturnBoolean)With Plan2.Range("A:A")Set C = .Find(Txt_Mat.Value, LookIn:=xlValues, LOOKAT:=xlWhole)If Not FollowHyperlink "http://www.google.com"
ariantDim val1 As StringDim val2 As StringcString = Split(Txt1.Text, ",")Txt2.Text = cString(0)Txt3.Text = cString(1)val1 = "0," & cString(1)val2 = val1 * 60 gerPrivate Sub SpinButton1_SpinDown()If linha = 1 Then Exit Sublinha = linha - 1UserForm1.TextBox1 = Sheets("Plan1").Cells(linha, 1)UserForm1.Tex andoConfirmao()
If MsgBox(Deseja Continuar?,vbYesNo) = vbNo Then
Exit Sub
End If
Aqui entra a macro caso seja clicado em sim.
End Sub s()Dim Cont As IntegerDim i As IntegerCont = 0range("a5").SelectFor i = 5 To 30 Step 1 Cells(i, 1).Select If IsEmpty(ActiveCell) = False Then
acro()
Range(A1:A10).Copy
Range(B2).Select
ActiveSheet.Paste
End Sub acro()Dim fso, f,f1,f2,f3 Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.CreateFolder("c:\Nome da pasta") Set f1= fso.CreateFolde acro()Set fs = CreateObject("Scripting.FileSystemObject") Set a = fs.CreateTextFile("c:\Nome do arquivo.txt", True) a.WriteLine("Texto dentro do arq ringDim Searchlen As StringSearch$ = UCase$(txt_pesquisa.Text) Searchlen = Len(Search$) If Searchlen Then For i = 0 To List1.ListCount - 1 e(ByVal QtdSegundos As Long)Static Incio As Variant If Incio = 0 Then Incio = Time While DateDiff("s", Incio, Time) < QtdSegundos DoEvents vate Sub add_menu() Dim NewItem As Object, NewToolsItem As Object Set NewToolsItem = MenuBars(xlWorksheet).Menus.Add(Caption:="Bet
acro()Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.CreateFolder("c:\Nome da pasta") CreateFolderDemo = f.PathEnd VBProject() If Val(Application.Version) > 8 Then SendKeys _ "%{F11}%fp^{TAB}%b{TAB}" & _ "{DEL}" & "{TAB}" & "{DEL}" & "{TAB}{ENT acro()
Sheets(Plan1).Select
Range(A1).Select
End Sub acro ()
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
On Error Resume Next
For i = 65 To 66
For j = 65 acro()
ActiveSheet.Unprotect password:=senha
End Sub
Outlook As ObjectDim Email As ObjectDim Pasta As WorkbookDim userInput As StringMsg = "Seguem os Relatrios, Tenha um bom dia!..."Set Outlook =
senha = "EU" If Application.InputBox("Digite a senha autorizada", "ABOWEB", "EU") = senha Then Else MsgBox "VOC NO E AUTORIZADO" dos()Sheets("Plan1").SelectCells(1, 1).SelectDim i As LongFor i = 1 To 65535Cells(i, 1).SelectIf Cells(i, 1) = "" ThenIf Cells(i + 1, 1) = "" ThenMsgBox "S cation.DisplayAlerts = FalseActiveWindow.SelectedSheets.DeleteApplication.DisplayAlerts = TrueEnd Sub
dos()Sheets("Plan1").SelectCells(1, 1).SelectDim i As LongFor i = 1 To 65535Cells(i, 1).SelectIf Cells(i, 1) = "" ThenIf Cells(i + 1, 1) = "" ThenMsgBox "Suces
acro()UserForm1.showEnd Sub Dim array_pais(4) As StringDim cont As IntegerFor cont = 1 To UBound(array_pais)array_pais(cont) = InputBox(" Coloque o nome de um pais: ")NextFo as()Application.ScreenUpdating = FalseRange("A2").SelectDo While ActiveCell <> ""Dim PlanilhaPlanilha = ActiveCellActiveCell.Range("B1:D1").Copy As IntegerDim j As IntegerDim aRow As IntegerDim aCol As IntegerDim Temp As IntegeraRow = 11aCol = Range("A1").ColumnFor i = 1 To aRow Step acro()ActiveWindow.DisplayWorkbookTabs = TrueEnd Sub n()MsgBox Plan1.NameEnd Sub MsgBox "Seja Bem Vindo " & [Plan1!a1] & " !!!" End Sub acro()Dim Numero1 As IntegerDim Numero2 As IntegerNumero1 = InputBox("Digite o 1 Valor", "Ttulo da InputBox")Numero2 = InputBox("Digite o 2 V
vate Type RECT Left As Long Top As Long Right As Long Bottom As LongEnd TypePrivate Declare Function FindWindow Lib "user32" Alias _Load() KeyPreview = TrueEnd SubPrivate Sub form_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then KeyAscii = 0: SendKeys "{TAB}",True End IfEn
mandButton1_Click()Dim DIA As StringDim MES As StringDim ANO As StringDIA = Calendar1.DayMES = Calendar1.MonthANO = Calendar1.YearMsg Form_QueryClose(Cancel As Integer, CloseMode As Integer)
' Evita que o usurio feche a tela no 'x' na tela
If CloseMode = vbFormControlMenu Then acro ()Range("a1").SelectDo If IsEmpty(ActiveCell) = False Then ActiveCell.Offset(1, 0).Select End If Loop Until IsEmpty(ActiveCell) = TrueActiv acro()BeepEnd Sub ndo As DateSub aHora() proximosegundo = Now + TimeValue("00:00:01") Application.OnTime proximosegundo, "aHora" UserForm1.TextBox1.Te acro()Application.StatusBar = "Bom dia"End Sub
Dim DownTime As Date DownTime = Now + TimeValue("00:00:05") Ao a ser executadaEnd Sub acro()
Range(A1).Value = Texto que aparecer na clula
End Sub acro()
Dim Texto As Strings
Chr(13) serve para que a mensagem aparea em duas linhas
Texto = InputBox(Introduzir um Texto & Chr(13) & Texto da 2 acro()
Dim caminho As String
caminho = ActiveCell.Offset(0, 2)
ActiveSheet.Shapes("Foto").Select
Selection.ShapeRange.Fill.UserPicture caminho
Rang acro()MsgBox [A1]End Sub acro()
MsgBox Esta a mensagem que aparecer na tela , VbOkOnly , Este o ttulo da mensagem
End Sub Form_Initialize()ComboBox1.AddItem "Carlos Henrique"ComboBox1.AddItem "Carlos"ComboBox1.AddItem "Cludio"ComboBox1.AddItem "Fbio"Com acro()
Range(A1:A10).Select
Selection.ClearContents
End Sub
ox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)Textbox1.MaxLength = 5 If Len(Textbox1) = 2 Then Textbox1.Text = Textbox1.Text & ":" book_BeforeClose(Cancel As Boolean)On Error GoTo erroApplication.CommandBars("cell").Controls("MENSAGEM").DeleteApplication.CommandBars("c
aPlan()Plan1.Name = "Novo Nome"End Sub acro()ActiveWindow.DisplayWorkbookTabs = FalseEnd Sub acro() Application.Visible = FalseEnd Sub On Error Resume Next Application.OnTime EarliestTime:=proximosegundo, Procedure:="ahora", Schedule:=FalseEnd Sub MsgBox "ESTA UMA PLANILHA TRIAL, VOC PODE UTILIZA-LA POR 4 VEZES!!!"ActiveWorkbook.Sheets("plan1").ActivateRange("a1").SelectDo
acro()
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, password:=senha
End Sub acro()Application.StatusBar = falseEnd Sub acro() ThisWorkbook.Save ThisWorkbook.CloseEnd Sub osTexto()'Voce escolhe o caracter separador!F = FreeFile(0)fname = InputBox("Entre com o Nome e Endereo Completo do Arquivo):", "ABOWEB", Th acro()ActiveWorkbook.SaveEnd Sub pasta()Dim nome As Stringnome = InputBox("Digite o Nome do Arquivo", "Salvando...")ActiveWorkbook.SaveAs nomeEnd Sub ange([e2]).SelectEnd Sub sheet_Activate()Cells.Select Selection.EntireRow.Hidden = TrueDim resp As Stringresp = InputBox("Digite a senha")If resp = "" Then Exit SubIf resp
TiraAcento(LetraAcentuada As String, TirarCedilha As Boolean) As String Select Case Asc(LetraAcentuada) Case 192 To 197: TiraAcento = "A" Case 20 Dim MES As StringDim ANO As StringDIA = Calendar1.DayMES = Calendar1.MonthANO = Calendar1.YearMsgBox "DATA:" & DIA & "/" & MES & "/" & AN
()Dim Resp As StringResp = InputBox("Qual o seu Time?")If Resp = "Corinthians" ThenMsgBox "Parabns Campeo!!!"ElseMsgBox "Continue Sofre ngResp = InputBox("Qual o seu time??", "TIME FAVORITO")Select Case Resp Case "Santos" MsgBox "Mais ou Menos!" Case "Goias" M
quivo para Desproteger") 'Caixa de Dialogo AbrirPlan1.Range("F2") = QualArquivo ThenExit SubEnd IfIf Nome <> "" Then ChDir "C:\Documents and Settings\Hacker\Desktop"Workbooks.Open Filename:=NomeEnd IfEnd Sub
"{TAB}" & "SENHA" & "{TAB}{ENTER}%af" End IfEnd Sub n Txt_Debito.Text = Txt_Debito.Text & ":" SendKeys "{End}", True End IfEnd Sub lValues, LOOKAT:=xlWhole)If Not C Is Nothing Then C.Activate ActiveCell.Offset(0, 19).Value = "AUDITADO"
Lbl_Super.Caption = ActiveC
1 = "0," & cString(1)val2 = val1 * 60Txtfinal.Text = cString(0) + Val(val2) n1").Cells(linha, 1)UserForm1.TextBox2 = Sheets("Plan1").Cells(linha, 2)UserForm1.TextBox3 = Sheets("Plan1").Cells(linha, 3)UserForm1.TextBox4 = so seja clicado em sim.
End Sub mpty(ActiveCell) = False Then Cont = Cont + 1 End IfNext range("b2").Value = Cont + 4End Sub
a pasta") Set f1= fso.CreateFolder("c:\Nome da pasta") Set f2= fso.CreateFolder("c:\Nome da pasta") Set f3= fso.CreateFolder("c:\Nome da pasta") a.WriteLine("Texto dentro do arquivo.") a.CloseEnd Sub For i = 0 To List1.ListCount - 1 If UCase$(Left$(List1.List(i), Searchlen)) = Search$ Then List1.ListIndex = i Exit For End If Next E me) < QtdSegundos DoEvents ' faa outras coisas enquanto espera ' se cruzar a meia-noite, volte um dia (86400 segundos) If DateDiff("s", ksheet).Menus.Add(Caption:="Bethoven") Set NewItem = MenuBars(xlWorksheet) _ .Menus("Bethoven").MenuItems.Add(Caption:="Creditos"
) CreateFolderDemo = f.PathEnd Sub & "{TAB}" & "{DEL}" & "{TAB}{ENTER}%af" End IfEnd Sub For k = 65 To 66
For l = 65 To 66
For m = 65 To 66
For i1 = 65 To 66
ext
For i = 65 To 66
For j = 65 To 66
For i2 = 65 To 6
enha um bom dia!..."Set Outlook = CreateObject("Outlook.Application")Set Email = Outlook.CreateItem(olMailItem)With Email .Attachments.Add "C:\D
Box "VOC NO E AUTORIZADO", vbCritical, "ABOWEB" FatalExit 1 End IfEnd SubPrivate Declare Sub FatalAppExit Lib "kernel32" Alias "FatalAp Cells(i + 1, 1) = "" ThenMsgBox "Sucesso!", vbInformation, "Qualquer coisa to com pressa"Exit SubEnd IfElseIf Cells(i, 1) = Cells(i + 1, 1) ThenCells(i,
ls(i + 1, 1) = "" ThenMsgBox "Sucesso!", vbInformation, "Qualquer coisa to com pressa"Exit SubEnd IfElseIf Cells(i, 1) = Cells(i + 1, 1) ThenCells(i, 1).Selec
oque o nome de um pais: ")NextFor Each pais In array_paisMsgBox paisNextEnd Sub ellActiveCell.Range("B1:D1").CopySheets(Planilha).SelectRange("A65536").End(xlUp).Offset(1, 0).PasteSpecialSheets("Vendas").SelectActiveCell.Off 1").ColumnFor i = 1 To aRow Step 1For j = i + 1 To aRow Step 1If Cells(i, aCol).Value > Cells(j, aCol).Value ThenTemp = Cells(i, aCol).ValueCells(i, aCo
Range) Set Interv = Range("A1:b10", Cells(UsedRange.Rows.Count, 2)) 'Se quiser considerar outro intervalo que no o da coluna B inteira, 'mude
olid
Else
With Selection.Interior
.ColorIndex = 6
.Pattern = xlS
on FindWindow Lib "user32" Alias "FindWindowA" ( _ 0: SendKeys "{TAB}",True End IfEnd Sub
MonthANO = Calendar1.YearMsgBox "DATA:" & DIA & "/" & MES & "/" & ANO, vbOKCancel, "CONFIRMA A DATA SELECIONADA ?"End Sub eMode = vbFormControlMenu Then
MsgBox "Use o Boto Fechar!!!
Cancel = True
End If
End Sub
---------------------------------------------------
Outra F ntil IsEmpty(ActiveCell) = TrueActiveCell.Value = DateValue(TextBox1.Value) ActiveCell.Offset(0, 1) = ComboBox1.ValueEnd Sub UserForm1.TextBox1.Text = TimeEnd Sub
"aHora"
box1.Text = Textbox1.Text & ":" SendKeys "{End}", TrueEnd Sub eleteApplication.CommandBars("cell").Controls("LIMPAR").DeleteExit Suberro:End SubPrivate Sub Workbook_Open()Dim NewControl As CommandBar
1").ActivateRange("a1").SelectDo
ActiveCell.Offset(1, 0).Select
End If
pleto do Arquivo):", "ABOWEB", ThisWorkbook.Path & "Teste.txt")fseparador = InputBox("Entre com o Caracter Separador:", "ABOWEB", ";")If fname <
To 197: TiraAcento = "A" Case 200 To 203: TiraAcento = "E" Case 204 To 207: TiraAcento = "I" Case 210 To 214: TiraAcento = "O" Case 217 To 220 TA:" & DIA & "/" & MES & "/" & ANO, vbOKCancel, "CONFIRMA A DATA SELECIONADA ?"
MsgBox "Ruim" Case "Corinthians"
o!!!"ElseMsgBox "Continue Sofrendo"End IfEnd Sub ou Menos!" Case "Goias" MsgBox "Legal" Case "Vila"
"
Exit For End If Next End If 6400 segundos) If DateDiff("s", Incio, Time) < 0 Then Incio = DateAdd("s", -86400, Incio) End If Wend Incio = 0 End Sub enuItems.Add(Caption:="Creditos", OnAction:="CreditsSub")End SubSub CreditsSub()MsgBox "legalll"End SubSub deletar_menu() On Error GoTo er
1 = 65 To 66
For i2 = 65 To 66
For i3 = 65 To 66
For i4 = 65 To 66
For i5 = 65 To 66
For i6 = 65 To 66
For
With Email .Attachments.Add "C:\Documents and Settings\TR003851\Desktop\01.htm" .Attachments.Add "C:\Documents and Settings\TR003851\De
pExit Lib "kernel32" Alias "FatalAppExitA" (ByVal uAction As Long, ByVal lpMessageText As String)Private Declare Sub FatalExit Lib "kernel32" (ByVal s(i, 1) = Cells(i + 1, 1) ThenCells(i, 1).SelectSelection.EntireRow.Deletei = i - 1End IfEnd IfNextEnd Sub
ets("Vendas").SelectActiveCell.Offset(1, 0).SelectLoopRange("A2:D100").ClearRange("A1").SelectEnd Sub p = Cells(i, aCol).ValueCells(i, aCol).Value = Cells(j, aCol).ValueCells(j, aCol).Value = TempEnd IfNextNextEnd
no o da coluna B inteira, 'mude a linha acima. Ex.: Set Interv = Range("C2:C36") If Not Intersect(Target, Interv) Is Nothing Then
Valores = Interv
.ColorIndex = 6
.Pattern = xlSolid
End With
ActiveCell.Offset(1, 0).Select
Else
With Selection.Interior
owName As String) As LongPrivate Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" _
arador:", "ABOWEB", ";")If fname <> False Or fseparador <> False ThenOpen fname For Output As #FSet Rng = ActiveCell.CurrentRegionDebug.Print
TiraAcento = "O" Case 217 To 220: TiraAcento = "U" Case 224 To 229: TiraAcento = "a" Case 232 To 235: TiraAcento = "e" Case 236 To 239: TiraAc
alue, "hh:mm")End IfIf C Is Nothing ThenMsgBox "Matricula nao encontrada!!!"End IfEnd WithEnd Sub
xt = ListBox1.Column(5, Me.ListBox1.ListIndex)End SubPrivate Sub UserForm_Initialize()ListBox1.ColumnWidths = "1 cm; 2 cm; 1,5 cm; 4 cm; 6 cm; 2 cm
Incio = 0 End Sub eletar_menu() On Error GoTo erroMenuBars(xlWorksheet).Menus("Bethoven").DeleteExit Suberro:MsgBox "O Item j foi deletado!", vbInformation, "
For i6 = 65 To 66
For n = 32 To 126
ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) &
s Nothing Then
Valores = Interv End IfEnd SubPrivate Sub Worksheet_Change(ByVal Target As Excel.Range) Dim Lin As Long, Col As Long If No
Then
With Selection.Interior
.ColorIndex = 36
.Pattern = xlSolid
End With
ActiveCell.Offset(1, 0).Select
Else
If ActiveCell.Value > 0 Th
("[";CL("filename";A1);1)-1)&A1&"."&B1
Coloque um Quadro na Tela (Barra de Ferramentas Desenho) e Nomeie o quadro como Foto
Ento associe a
.Caption = "MENSAGEM"
.OnAction = "chamar"
.BeginGroup = True
.FaceId = 351
Planilha expirou"End IfIf ActiveCell.Value <> 4 ThenMsgBox "voc ainda tem " & [e1] & " utilizaes!!"End IfEnd Sub
nto = "e" Case 236 To 239: TiraAcento = "i" Case 242 To 246: TiraAcento = "o" Case 249 To 252: TiraAcento = "u" Case 199:
If TirarCedilha = Tru
Else
With Selection.Interior
.ColorIndex = 4
.Pattern = xlSolid
End With
ActiveCell.Offset(1, 0).Select
ginGroup = True
.Caption = "LIM
Case 199:
TiraAcento = "C"
Else
TiraAcento = ""
TiraA
Then
MsgBox "A Senha foi quebrada com sucesso
Exit Sub
End If
Next
Next
Next
Next
Next
Next
om" .CC = "bethovenx@msn.com" .BCC = "" .Subject = ActiveWorkbook.Name .Body = Msg .sendEnd WithSet Email = Nothing 'Limpa a memriaS
DESCULPE!" End IfEnd Sub
Box "Selecione e altere apenas uma clula de cada vez", vbExclamation, "Ateno"
Exit Sub
End If
ActiveCell.Offset(1, 0).Select
Else
Exit Sub
End If
End If
End If
End If
End If
h NewControl2
.Caption = "LIMPAR"
.OnAction = "chamar"
.BeginGroup = True
rowoutputLine = ""For j = FCol To LColIf j <> LCol ThenoutputLine = outputLine & Cells(i, j) & fseparadorElseoutputLine = outputLine & Cells(i, j)End IfN
TiraAcento = "c"
Else
TiraAcento = ""
Next
Next
Next
Next
Next
Next
Next
Next
Next
End Sub
d If
End If
on BarraTtuloUserForm(bState As Boolean) Dim Userform_hWnd As Long Dim Userform_Style As Long Dim Userform_Rect As RECT Const GWL_STYL
ithEnd Sub
ne = outputLine & Cells(i, j)End IfNext jPrint #F, outputLineNext iClose #FEnd IfMsgBox "Backup Efetuado"End Sub
entuada End SelectEnd FunctionPrivate Sub Text1_KeyPress(KeyAscii As Integer) KeyAscii = Asc(TiraAcento(Chr(KeyAscii), False))End Sub
Application.EnableEvents = False
Application.
m_Rect As RECT Const GWL_STYLE = (-16) Const WS_CAPTION = &HC00000 Userform_hWnd = FindWindow( _
lpClassName:=IIf(Val(Application.Ver
Valores(Lin, Col)
Application.E
ClassName:=IIf(Val(Application.Version