Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Macro selecting wrong cell range

I track orders in excell, when new orders are entered at the end of
the day I open the file they are entered into copy & paste at the
bottom of mine. I recorded a macro to do this for me but it does not
go to the end of the list to paste the new orders it goes back to the
same cell that was selected when the macro was recorded. (I press Ctrl
down to go to the end of the list, which was row #7325 when I recorded
the macro & that is the cell it goes back to)

How do I have the Macro go to the end regardless how long the list is?


I have the same problem selecting the cell range to copy (again
Shift+Ctrl+down)
to hilight all of the list but when I edit the macro it is calling for
a specific cell range so if the next day has more orders, some of the
ones at the bottom will not get coppied.


Thank you for your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Macro selecting wrong cell range

Assuming that you are looking at column A

Cells(Rows.Count,"A").End(xlUp).Offset(1,0).Select

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Josh" wrote in message
om...
I track orders in excell, when new orders are entered at the end of
the day I open the file they are entered into copy & paste at the
bottom of mine. I recorded a macro to do this for me but it does not
go to the end of the list to paste the new orders it goes back to the
same cell that was selected when the macro was recorded. (I press Ctrl
down to go to the end of the list, which was row #7325 when I recorded
the macro & that is the cell it goes back to)

How do I have the Macro go to the end regardless how long the list is?


I have the same problem selecting the cell range to copy (again
Shift+Ctrl+down)
to hilight all of the list but when I edit the macro it is calling for
a specific cell range so if the next day has more orders, some of the
ones at the bottom will not get coppied.


Thank you for your help



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
Macro for Selecting Cells within a Range ToddS Excel Worksheet Functions 2 April 3rd 09 09:04 PM
Selecting a range of cells in a macro Victor Delta[_2_] Excel Discussion (Misc queries) 5 July 26th 08 12:19 AM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
Highlight Range - wrong macro, please edit. Danny Excel Worksheet Functions 8 October 19th 05 11:11 PM
Selecting Variable Row Range w/Macro steve Excel Programming 3 February 26th 04 07:24 PM


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

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

About Us

"It's about Microsoft Excel"