Jump to content
Macro Express Forums

Another excel problem


kmaster1

Recommended Posts

Okay. I have an online school and I want to enroll all my students. So I have to fill out a web form for each student. About 15 pieces of info per student. This will take a long time for 150 students. So I want a macro that will open a .csv file and count the number of rows in my excel file, then repeat filling out the form that many times.

 

I know I need the ASCII Begin and End which will go to the next row, but the problem is I need it to pull the information out, then fill out the form, save the form, then start all over. What can I do?

Link to comment
Share on other sites

The ASCII File Begin Process command will do this for you. It reads the first line of the .csv file and saves each record (cell) to individual text string variables. You can then have the macro enter each variable into the appropriate field on the form and save it. After these steps insert the ASCII File End Process command.

 

The macro starts over again with the second line of the .csv file, repeating the steps. When finished it starts with line 3 and so on until every line in the file has been processed.

Link to comment
Share on other sites

The ASCII File Begin Process command will do this for you. It reads the first line of the .csv file and saves each record (cell) to individual text string variables. You can then have the macro enter each variable into the appropriate field on the form and save it. After these steps insert the ASCII File End Process command.

 

The macro starts over again with the second line of the .csv file, repeating the steps. When finished it starts with line 3 and so on until every line in the file has been processed.

 

 

Okay, but now the problem. The macro needs to start over again. HOW! And I want this to be done in 1 macro that is the confusing part.

 

Do I use a repeat, but then how to tell when it is finished? Please help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...