Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With Sheet1 in focus and data displayed in a modeless user form, I want to
'send' some of this data to Sheet2; as I do this repeatedly, every time I 'send' the data I want it to go to a new row, but as Sheet2 is not in focus I do not not know the address of the next available range. So my question is: How do I kepe track of the 'last written to' range? 1. Is there some global function to his? 2. Do I have to do check for this from inside Sheet2 and then call this function from the user form? Mac |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you are writing to column A
Dim jLastRow as long jLastRow=worksheets("Sheet2").Range("A65536").end( xlup).row will get you the last non-blank entry. Charles __________________________________________________ The Excel Calculation Site http://www.decisionmodels.com "Mac" wrote in message ... With Sheet1 in focus and data displayed in a modeless user form, I want to 'send' some of this data to Sheet2; as I do this repeatedly, every time I 'send' the data I want it to go to a new row, but as Sheet2 is not in focus I do not not know the address of the next available range. So my question is: How do I kepe track of the 'last written to' range? 1. Is there some global function to his? 2. Do I have to do check for this from inside Sheet2 and then call this function from the user form? Mac |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array data to Range: Only first value written | Excel Programming | |||
How to insert tracking numbers into my webpage for RMA tracking | Excel Discussion (Misc queries) | |||
xla written in C# | Excel Programming | |||
Searching range for value (code written but needs 'tweaking'!) | Excel Programming | |||
How to protect single cell or cells range from being over-written? | Excel Programming |