Solved

Excel automation

Posted on 2009-07-08
4
165 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
  • 2
4 Comments
 
LVL 59

Expert Comment

by:Chris Bottomley
Comment Utility
.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
Comment Utility
Other way round - it's row then column:
.worksheets("sheet1").cells(rwNumber,clNumber)
:)
0
 
LVL 59

Expert Comment

by:Chris Bottomley
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A short article about a problem I had getting the GPS LocationListener working.
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

772 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now