Solved

Excel automation

Posted on 2009-07-08
4
174 Views
Last Modified: 2013-11-25
Hello again friends, well i got a challenging thing here, i am trying to automate excel and export values from my text boxes in my visual basic application right into excel cells and i managed to make the header and open the excel document, i can make the values go into the cells i choose (first row) but i can only enter one row, and if i do it again it will replace the row entered, meaning no loop to enter a row each time i add info....i cant make a loop!
code-xl.JPG
0
Comment
Question by:ahashash
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 24811108
.cells takes column then row so try:

.worksheets("sheet1").cells(clNumber,rwNumber)

Chris
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 24811376
Other way round - it's row then column:
.worksheets("sheet1").cells(rwNumber,clNumber)
:)
0
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 24811440
Yeah I knew that but the seat to keyboard interface is playing up!

ahashash, by way of clarifying what I was trying to say in your post you weren't using the row number loop control variable therefore the only variation was through the column identifier.

Chris
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question