ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Overwriting data (https://www.excelbanter.com/excel-discussion-misc-queries/57399-overwriting-data.html)

Cody

Overwriting data
 
I have a macro set up to submit data from an entry point on one worksheet
into a database on the other. Basically, I enter the info on the first
worksheet, hit submit, and it transfers it to the second worksheet. My
question is, how do i make it skip to the next line on the second worksheet
so that it logs all the submits rather then overwriting the previous?

Thanks!
--
na

bpeltzer

Overwriting data
 
This will get you to the cell just below the last populated cell of column A:
Application.Goto Reference:="R65536C1"
Selection.End(xlUp).Select
Selection.Offset(1, 0).Select
(You could get this row into a variable if needed: NextRow = selection.row)
HTH. --Bruce


"Cody" wrote:

I have a macro set up to submit data from an entry point on one worksheet
into a database on the other. Basically, I enter the info on the first
worksheet, hit submit, and it transfers it to the second worksheet. My
question is, how do i make it skip to the next line on the second worksheet
so that it logs all the submits rather then overwriting the previous?

Thanks!
--
na


Cody

Overwriting data
 
I dont know what this means... how do i enter this in.. or where i guess. I
usually just use the functions... im sorry I am very new to excel, your help
is so very appreciated.
--
na


"bpeltzer" wrote:

This will get you to the cell just below the last populated cell of column A:
Application.Goto Reference:="R65536C1"
Selection.End(xlUp).Select
Selection.Offset(1, 0).Select
(You could get this row into a variable if needed: NextRow = selection.row)
HTH. --Bruce


"Cody" wrote:

I have a macro set up to submit data from an entry point on one worksheet
into a database on the other. Basically, I enter the info on the first
worksheet, hit submit, and it transfers it to the second worksheet. My
question is, how do i make it skip to the next line on the second worksheet
so that it logs all the submits rather then overwriting the previous?

Thanks!
--
na


bpeltzer

Overwriting data
 
You said you had a macro set up; this would go just before the point in the
macro where you begin pasting your data.

"Cody" wrote:

I dont know what this means... how do i enter this in.. or where i guess. I
usually just use the functions... im sorry I am very new to excel, your help
is so very appreciated.
--
na


"bpeltzer" wrote:

This will get you to the cell just below the last populated cell of column A:
Application.Goto Reference:="R65536C1"
Selection.End(xlUp).Select
Selection.Offset(1, 0).Select
(You could get this row into a variable if needed: NextRow = selection.row)
HTH. --Bruce


"Cody" wrote:

I have a macro set up to submit data from an entry point on one worksheet
into a database on the other. Basically, I enter the info on the first
worksheet, hit submit, and it transfers it to the second worksheet. My
question is, how do i make it skip to the next line on the second worksheet
so that it logs all the submits rather then overwriting the previous?

Thanks!
--
na


Cody

Overwriting data
 
Thank you, it worked !
--
na


"bpeltzer" wrote:

You said you had a macro set up; this would go just before the point in the
macro where you begin pasting your data.

"Cody" wrote:

I dont know what this means... how do i enter this in.. or where i guess. I
usually just use the functions... im sorry I am very new to excel, your help
is so very appreciated.
--
na


"bpeltzer" wrote:

This will get you to the cell just below the last populated cell of column A:
Application.Goto Reference:="R65536C1"
Selection.End(xlUp).Select
Selection.Offset(1, 0).Select
(You could get this row into a variable if needed: NextRow = selection.row)
HTH. --Bruce


"Cody" wrote:

I have a macro set up to submit data from an entry point on one worksheet
into a database on the other. Basically, I enter the info on the first
worksheet, hit submit, and it transfers it to the second worksheet. My
question is, how do i make it skip to the next line on the second worksheet
so that it logs all the submits rather then overwriting the previous?

Thanks!
--
na


Dave Peterson

Overwriting data
 
dim NextCell as range
with worksheets("othersheet")
'this uses column A to determine the next available row
set nextcell = .cells(.rows.count,"A").end(xlup).offset(1,0)
end with

'Then your macro does stuff:

destcell.value = "something"
destcell.offset(0,1).value = "something else"

'or...

somernginthecurrentworksheet.copy _
destination:=destcell




Cody wrote:

I have a macro set up to submit data from an entry point on one worksheet
into a database on the other. Basically, I enter the info on the first
worksheet, hit submit, and it transfers it to the second worksheet. My
question is, how do i make it skip to the next line on the second worksheet
so that it logs all the submits rather then overwriting the previous?

Thanks!
--
na


--

Dave Peterson


All times are GMT +1. The time now is 12:32 AM.

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