🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #1899

Re: [?] VB X Excel: come copiare automaticamente una cella in un altro foglio excel?

#1899
From: Zuril
Date: Tue, 20 Jan 2004 13:03
35 lines
2113 bytes
Grazie 1000 della risposta... Ho proceduto scrivendo una macro, ma ho ancora
qualche problemino:

Praticamente,  la prima riga dell'ordine parte dalla cella "A16", ed il
prezzo totale dell articolo si trova in "E16".
Vorrei sapere, come posso fare perche' possa scrivere il totale della
fattura in una cella (ipoteticamente "C9")?
Vorrei cioe' che in C9 comparisse il totale di "E16"+ eventuali altre righe
dell'ordine (E17, E18, ecc. ecc..)

Io ho fatto in questo modo:

indice = indice + 1

             x = indice
             Miavar = 16
             miavar2 = Miavar + x - 1

            For b = 16 To miavar2
            Somma = Range("Ordine!E" & b).Value

            Range("Ordine!C9") = Range("Ordine!E16") + Range("Ordine!E" & b)



            Next b

ma cosi facendo, mi calcola soltanto il valore del primo e dell'ultimo
articolo, tralasciando tutti gli altri...

Sicuramente e' una cavolata, ma al momento mi sta facendo dannare, grazie a
chiunque possa aiutarmi.

Ciao
Roberto
Technical Details
Message-ID: <BG9Pb.151131$_P.5480590@news4.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!newsfeed.nextoneserver.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail
References: <M86Ob.102144$VW.4127306@news3.tin.it> <V87Ob.102306$VW.4138382@news3.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII-7-bit
X-Google-Thread: f94ee,c23ff1678a415510
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2004-01-20 05:03:29 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!newsfeed.nextoneserver.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail
From: "Zuril" <zuril@supereva.it>
Newsgroups: free.it.visual-basic
References: <M86Ob.102144$VW.4127306@news3.tin.it> <V87Ob.102306$VW.4138382@news3.tin.it>
Subject: Re: [?] VB X Excel: come copiare automaticamente una cella in un altro foglio excel?
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <BG9Pb.151131$_P.5480590@news4.tin.it>
Date: Tue, 20 Jan 2004 13:03:29 GMT
NNTP-Posting-Host: 217.172.212.206
X-Complaints-To: newsmaster@tin.it
X-Trace: news4.tin.it 1074603809 217.172.212.206 (Tue, 20 Jan 2004 14:03:29 MET)
NNTP-Posting-Date: Tue, 20 Jan 2004 14:03:29 MET
Organization: TIN