Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Excel macro/vba loops

Im trying to read in a form from oracle which is imported into excel. From
this imported form I would like to create a macro that selects values from
this form and pastes them into another worksheet. There are many forms but
will be thrown out from oracle one by one so will be called the same name.
Each form contains customer deatils such as name,age,sex. So i require a
macro that picks the name,age and sex from the form and populates another
workbook with the same information. The problem i am having is that the macro
reads in the first form but when it tackles the 2nd one it overwites what it
read from the 1st.

e.g
oracle form:
name sam
age 22
sex M

transfer info from form to worksheet as
name age sex
sam 22 M

the 2nd form
name julie
age 21
sex F

worksheet shoul;d appear as

name age sex
sam 22 M
julie 21 F

can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Excel macro/vba loops

Your problem appears to be in defining the destination. There are many ways
to define the destination depending on the layout of your data, but you
don't provide anything about the layout of your destination data. For
instance, the line:
Range("A" & Rows.Count).End(xlUp).Offset(1)
designates the blank cell in Column A immediately below the last occupied
cell in Column A.
It is always good to post your code. HTH Otto
"sammy" wrote in message
...
Im trying to read in a form from oracle which is imported into excel. From
this imported form I would like to create a macro that selects values from
this form and pastes them into another worksheet. There are many forms
but
will be thrown out from oracle one by one so will be called the same name.
Each form contains customer deatils such as name,age,sex. So i require a
macro that picks the name,age and sex from the form and populates another
workbook with the same information. The problem i am having is that the
macro
reads in the first form but when it tackles the 2nd one it overwites what
it
read from the 1st.

e.g
oracle form:
name sam
age 22
sex M

transfer info from form to worksheet as
name age sex
sam 22 M

the 2nd form
name julie
age 21
sex F

worksheet shoul;d appear as

name age sex
sam 22 M
julie 21 F

can anyone help?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro that loops till end of worksheet Nadiya Excel Programming 2 November 10th 04 05:36 PM
Vlookup macro that returns data from worksheet, then Loops xlsxlsxls[_3_] Excel Programming 4 October 23rd 04 05:48 PM
Vlookup macro that returns data from worksheet, then Loops xlsxlsxls[_4_] Excel Programming 0 October 23rd 04 05:43 PM
copying areas and macro loops dynamicsoul Excel Programming 3 September 12th 03 09:43 PM
macro that loops to multiple columns Brad Zenner Excel Programming 1 July 22nd 03 03:17 AM


All times are GMT +1. The time now is 08:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"