Quantcast
Channel: Visual Basic Tips and Tricks
Viewing all articles
Browse latest Browse all 2212

Problema cerca verticale VBA

$
0
0

Buongiorno a tutti,

non riesco a trovare il modo per poter fare la seguente azione:

Ho una tabella così definita :

        A                    - B           - C           - D

8  20/08/18           10              20           30

9  21/08/18

10 22/08/18

I valori popolati nella casella B / C / D li ho messi a mano io, era per dare un'idea.

Mi servirebbe il codice per dire "Cerca nella casella A la data odierna e popola le caselle B C D (in base a dei criteri che ho già stabilito)" mettendo :

Dim Riga As Long
Dim Lista As String

Data = Date

ThisWorkbook.Activate
ThisWorkbook.Sheets(2).Cells(8, 2).Select
Riga = Cells.Find(What:=Data, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
        , SearchFormat:=False).Row

mi esce l'errore "Run-time 91" e non riesco a trovare soluzioni

Qualche idea?

grazie

 

 


Viewing all articles
Browse latest Browse all 2212

Trending Articles


HOY PANGIT, MAGBAYAD KA!


Henry el monstruo feliz para colorear e imprimir


Dama y vagabundo para pintar


Girasoles para colorear


Good Morning Quotes


RE: Mutton Pies (jameskoiman)


Hagibis (1946) by Francisco V. Coching


Ka riam ka beit bad ka por riam


Vimeo Create - Video Maker & Editor 1.6.0 by Vimeo Inc


Vimeo 3.42.1 by Vimeo Inc