Solved

Excel automation

Posted on 2009-07-08
4
167 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

929 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

8 Experts available now in Live!

Get 1:1 Help Now