Jump to content

jau288

Membro Inativo
  • Posts

    17
  • Joined

  • Last visited

Posts posted by jau288

  1. Em 04/10/2017 at 10:03, edcronos2 disse:

    nem tenho mais essa planilha, talvez alguem que tenha baixado te mande"oq eu duvido"

     

    @Crazy Rabbit

    esse topico é de quando conheci e entrei no forum

    pode ver que minha intenção era compartilhar

    mas apenas baixavam e ninguem ajudou nem com dicas , os unicos que comentaram foram para reclamar

    depois disso adaptei para outras loterias para as planilhas pessoais de algumas pessoas que nunca postaram as planilhas no forum, a função de ciclo, conta rep, conta conjunto tbm foram para outras pessoas

    claro que tem planilhas desse pessoal que eu poderia disponibilizar já que fiz sem ganhar nada, e nem se pode dizer que são as mesmas que eles pediram para modificar , mas infelizmente se foram junto do hd defeituoso

     

    eu não sou assim como sou , o pessoal do forum que me fez mudar

    OBRIGADO!!!

  2. Em 04/10/2017 at 04:19, Crazy Rabbit disse:

    Simplificando o Substantivo,

     

    Lá Vai,

     

    http://www.mediafire.com/file/8y3alqq0mmq8ojj

     

    Print,

     

    1567-3.thumb.jpg.a7612d987c9bef9bc2f3a9e3eafaca4a.jpg

     

    Crazy Rabbit

    Bom dia Crazy, tentei baixar esta planilha e deu erro (em anexo) poderia mandar um novo link ou mandar por email a planilha por favor.... meu email e xxxxxxxxx@gmail.com.

    Abraços e muito obrigado pela atenção...

    forum 111.png

  3. Em 21/06/2015 at 11:03, roger1318 disse:

    Ola,

     

    Segue um modelo:

     

    https://www.sendspace.com/file/9d0j68

    https://www.sendspace.com/file/ef9t1j

    29 minutos atrás, Pitaco_certo! disse:

     

     

    Não é possível nem ver o arquivo e nem saber do que se trata, acho que o arquivo está com senha e não é possível baixar!

     

    Qualquer coisa posta aí...

     

    Att,

     

     

    Sorte

    Roger1318

    https://www.sendspace.com/file/ef9t1j

     

    30 minutos atrás, Pitaco_certo! disse:

     

     

    Não é possível nem ver o arquivo e nem saber do que se trata, acho que o arquivo está com senha e não é possível baixar!

     

    Qualquer coisa posta aí...

     

    Att,

     

     

     

  4. Cronos,

     

    Grande trabalho!

     

    Vou compartilhar consigo o motivo de não ter lhe fornecido feedback, seu código é incompatível para plataforma 64 bits?

     

    Entretanto vou colaborar consigo;

     

    Enviei esse mesmo código a um site especializado em loterias e o máximo que o responsável fez foi me dizer "Obrigado!", incluiu imediatamente em suas planilhas e passou a vender.....!!!

     

    Que bacana!

     

     

    Se desejar continuamos, o que acontece em loteria é que é difícil convergir os interesses;

     

    Segue, vai ajudar, basta realizar algumas alterações;

     

    "Para atualizar o resultado automáticamente, vou lhe fornecer o código";

     

    Private Declare PtrSafe Function InternetGetConnectedState _

       Lib "wininet.dll" (ByRef dwflags As Long, _

       ByVal dwReserved As Long) As Long

    Private Const INTERNET_CONNECTION_MODEM As Long = &H1

    Private Const INTERNET_CONNECTION_LAN As Long = &H2

    Private Const INTERNET_CONNECTION_PROXY As Long = &H4

    Private Const INTERNET_CONNECTION_OFFLINE As Long = &H20

    Function IsInternetConnected() As Boolean

        Dim L As Long

        Dim R As Long

        R = InternetGetConnectedState(L, 0&)

        If R = 0 Then

            IsInternetConnected = False

        Else

            If R <= 4 Then

                IsInternetConnected = True

            Else

                IsInternetConnected = False

            End If

        End If

    End Function

    Sub AtualizarResultados()

        Dim FSO, oApp As Object

        Dim objHttp, DefPath, Arquivo As String

        Dim Dados() As Byte

        Dim Fname As Variant

        Dim FileNameFolder As Variant

        Dim FileName As Variant

        Dim iFileNumber As Long

        Dim Ret As Long

               

        Application.ScreenUpdating = False

        Set objHttp = CreateObject("MSXML2.ServerXMLHTTP")

                  

        If IsInternetConnected() = True Then

                  

            objHttp.Open "GET", "http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_lotfac.zip", False

            objHttp.Send

            

            DefPath = ThisWorkbook.Path & "\"

            Arquivo = DefPath & "D_lotfac.zip"

            FileName = Arquivo

           

            If objHttp.Status = "200" Then

                Dados = objHttp.ResponseBody

                iFileNumber = FreeFile

                Open Arquivo For Binary Access Write As #iFileNumber

                Put #iFileNumber, 1, Dados

                Close #iFileNumber

            End If

           

            If Right(DefPath, 1) <> "\" Then

                DefPath = DefPath & "\"

            End If

            FileNameFolder = DefPath

           

            Set oApp = CreateObject("Shell.Application")

            oApp.Namespace(FileNameFolder).CopyHere oApp.Namespace(FileName).items

       

            '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

           

            Worksheets("Início").Range("C7") = diretorio

            Worksheets("Início").Range("C7").Select

            Selection.Replace What:="\", Replacement:="/", LookAt:=xlPart, _

            SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _

                ReplaceFormat:=True

                diretorio = Worksheets("Início").Range("C7")

            Sheets("Base").Select

            With ActiveSheet.QueryTables.Add(Connection:= _

                "URL;file:///" & DefPath & "/D_LOTFAC.HTM", Destination:=Range( _

                "Base!$A$1"))

                .Name = "D_MEGA"

                .FieldNames = True

                .RowNumbers = False

                .FillAdjacentFormulas = False

                .PreserveFormatting = True

                .RefreshOnFileOpen = False

                .BackgroundQuery = True

                .RefreshStyle = xlInsertDeleteCells

                .SavePassword = False

                .SaveData = True

                .AdjustColumnWidth = True

                .RefreshPeriod = 0

                .WebSelectionType = xlEntirePage

                .WebFormatting = xlWebFormattingNone

                .WebPreFormattedTextToColumns = True

                .WebConsecutiveDelimitersAsOne = True

                .WebSingleBlockTextImport = False

                .WebDisableDateRecognition = False

                .WebDisableRedirections = False

                .Refresh BackgroundQuery:=False

            End With

            Sheets("Base").Select

            Rows("1:2").Select

            Selection.Delete Shift:=xlUp

            Application.ScreenUpdating = True

           

            Call OrdenaResultados

            Call Auto_Open

            MsgBox "Planilha atualizada com sucesso!"

        Else

            MsgBox "Para atualizar é necessário estar conectado à internet."

        End If

    End Sub

    o link não funciona.. tem um outro ....  Gostaria de entender o codigo ... Obrigado....

×
×
  • Create New...