FAQ | Points | Add... | Recent posts | Search | Register | Log in


Excell_przeszukiwanie tabeli i wstawienie wartości


Post new topic  This topic is locked      Main Page -> Forum Index -> Computer Service -> Computer Software -> Excell_przeszukiwanie tabeli i wstawienie wartości
Author
Message
Robert_630
Poziom 6
Poziom 6


Joined: 30 Dec 2009
Posts: 16
Location: Warszawa

Post#1 Post from the author of the topic 02 Sep 2010 15:34   

Excell_przeszukiwanie tabeli i wstawienie wartości


Witam

przy pomocy poniższej procedury potrzebuję przeszukać tabelę i w określonym miejscu wstawić wartość 0. Nie mogę znaleźć sposobu aby zmusić excella aby była to kolumna określona przez ze mnie. Narazie wartość 0 jest wstawiana zawsze w kolumnie "A".


Sub ncountter()
nCounter = 1
While nCounter < 100
Range(nCounter & ":" & nCounter).Select
If Range("D" & nCounter).Value = 1 Then
ActiveCell.FormulaR1C1 = 0
With Selection.Font
.Name = "Calibri"
.Size = 10
End With
End If
nCounter = nCounter + 1
Wend
End Sub
Back to top
   
Google

Google Adsense


Post# Post from the author of the topic 02 Sep 2010 15:34   





Back to top
   
adamas_nt
Poziom 22
Poziom 22


Joined: 26 Jan 2008
Posts: 2112
Location: Nowy Tomyśl

Post#2 02 Sep 2010 18:31   

Re: Excell_przeszukiwanie tabeli i wstawienie wartości


Określ kolumnę w procedurze Np
Code:
Sub ncountter()
nCounter = 1
kol = 3
While nCounter < 100
  Range(nCounter & ":" & nCounter).Select
  If Range("D" & nCounter).Value = 1 Then
    'ActiveCell.FormulaR1C1 = 0
    Cells(nCounter, kol) = 0
    '(...)
  End If
  nCounter = nCounter + 1
Wend
End Sub

Back to top
   
Google

Google Adsense


Post# 02 Sep 2010 18:31   





Back to top
   
Robert_630
Poziom 6
Poziom 6


Joined: 30 Dec 2009
Posts: 16
Location: Warszawa

Post#3 Post from the author of the topic 02 Sep 2010 19:00   

Re: Excell_przeszukiwanie tabeli i wstawienie wartości


witam

dzięki działa
ten nawiasik (bez ') przed end if miałby ewentualnie jeszcze coś jeszcze powodować ?
Robert
Back to top
   
adamas_nt
Poziom 22
Poziom 22


Joined: 26 Jan 2008
Posts: 2112
Location: Nowy Tomyśl

Post#4 02 Sep 2010 19:26   

Re: Excell_przeszukiwanie tabeli i wstawienie wartości


Nie, nie :) W tym miejscu jest Twoje formatowanie czcionki. Wyciąłem jako mało istotne dla rozwiązania, wklej sobie oczywiście...
Back to top
   
Google

Google Adsense


Post# 02 Sep 2010 19:26   





Back to top
   
Robert_630
Poziom 6
Poziom 6


Joined: 30 Dec 2009
Posts: 16
Location: Warszawa

Post#5 Post from the author of the topic 02 Sep 2010 19:35   

Re: Excell_przeszukiwanie tabeli i wstawienie wartości


ok :)
jeszcze raz dzięki
Robert
Back to top
   
Post new topic  This topic is locked      Main Page -> Forum Index -> Computer Service -> Computer Software -> Excell_przeszukiwanie tabeli i wstawienie wartości
Page 1 of 1
Similar topics
Wyświetlanie w tabeli tego samego, co w innej tabeli - jak?? (3)
MS Access - przekazanie wartości pola txt z form do tabeli (1)
EXCELL i wybieranie wartości z tabeli (7)

Page generation time: 0.094 seconds


FAQ || Administrator || Moderators || Widgets and banners || Contact
elektroda.pl topic RSS feed