Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've written a macro that copies/pastes a lot of data from different
files into a single sheet. My macro pastes the data using a LastRow variable I included based on the ActiveRange. My problem is when I try to delete the data and run it again, the ActiveRange is not resetting - it is registering the End at wherever my data previously ended. I try clearing the contents, setting formatting to general, but nothing seems to work. Does anyone know how to fix this? Thanks, Brad |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
After deleting the data you have to save the workbook to reset.
-- Mike Q. " wrote: I've written a macro that copies/pastes a lot of data from different files into a single sheet. My macro pastes the data using a LastRow variable I included based on the ActiveRange. My problem is when I try to delete the data and run it again, the ActiveRange is not resetting - it is registering the End at wherever my data previously ended. I try clearing the contents, setting formatting to general, but nothing seems to work. Does anyone know how to fix this? Thanks, Brad |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Debra Dalgleish shows techniques to reset that last used cell:
http://contextures.com/xlfaqApp.html#Unused wrote: I've written a macro that copies/pastes a lot of data from different files into a single sheet. My macro pastes the data using a LastRow variable I included based on the ActiveRange. My problem is when I try to delete the data and run it again, the ActiveRange is not resetting - it is registering the End at wherever my data previously ended. I try clearing the contents, setting formatting to general, but nothing seems to work. Does anyone know how to fix this? Thanks, Brad -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
password resetting | Excel Discussion (Misc queries) | |||
Resetting the end of a worksheet | New Users to Excel | |||
Generic Name for ActiveRange in VLookup | Excel Programming | |||
Used Range is not resetting | Excel Programming | |||
Resetting a variable to nothing | Excel Programming |