ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Creating a Fill In form that populates a table (https://www.excelbanter.com/excel-discussion-misc-queries/181102-creating-fill-form-populates-table.html)

Embyr42

Creating a Fill In form that populates a table
 
Hi,
I am trying to create a front end user form that then poplulates into the
columns on the next tab with a macro.
I can get the macro to take the first line of data over to the next tab, but
I can't figure out how to get the macro to then go to the next available row
to populate the data of subsequent entries, it is simply replacing the data
of the first row each time.

How do I correct this error?
Thanks

Otto Moehrbach[_2_]

Creating a Fill In form that populates a table
 
You should post the code that you have so far. A general answer to your
question would be to set a range, call it, say, Dest, that would be the cell
into which you will paste what you copied. Then every time you paste, you
would add a line of code like:
Set Dest = Dest.Offset(1)
This would apply if your code was in a loop.
If you are copying/pasting one time in each cycle, you can find the next
empty row with something like:
Set Dest=Range("A" & Rows.Count).End(xlUp).Offset(1)
HTH Otto
"Embyr42" wrote in message
...
Hi,
I am trying to create a front end user form that then poplulates into the
columns on the next tab with a macro.
I can get the macro to take the first line of data over to the next tab,
but
I can't figure out how to get the macro to then go to the next available
row
to populate the data of subsequent entries, it is simply replacing the
data
of the first row each time.

How do I correct this error?
Thanks





All times are GMT +1. The time now is 10:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com