#1   Report Post  
Posted to microsoft.public.excel.misc
Cody
 
Posts: n/a
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
Cody
 
Posts: n/a
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default 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

  #5   Report Post  
Posted to microsoft.public.excel.misc
Cody
 
Posts: n/a
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default 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
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
Excel 2003, Convert EXISTING Worksheet Data to XML? [email protected] Excel Discussion (Misc queries) 4 November 16th 05 04:45 AM
Pull Current Month's Data Out of List - Repost Karl Burrows Excel Discussion (Misc queries) 4 May 3rd 05 01:06 AM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
prevent users from overwriting other users data [email protected] Excel Worksheet Functions 0 April 17th 05 08:18 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM


All times are GMT +1. The time now is 12:49 PM.

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

About Us

"It's about Microsoft Excel"