Solved

Excel automation

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

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.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Six Sigma Control Plans
Progress

729 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