Anthony's VBA Forum Index Anthony's VBA Forum
Where the knowledge is shared
Menu
 Anthony's VBA Forum IndexHome Page
 Anthony's VBA Forum IndexForum Index
FAQFAQ
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesMessages
Log inLogin/Out

Quick Search

Advanced Search

Links
Consulting
Products

Who's Online
[ Administrator ]
[ Moderator ]


VBA coding problem.

 
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA
View previous topic :: View next topic  
Author Message
Mikey Z



Joined: 13 Dec 2007
Posts: 1

PostPosted: Thu Dec 13, 2007 4:09 pm    Post subject: VBA coding problem. Reply with quote

This sounds easy enough but it's giving me fits, especially since it has been working for years.

I recorded a Macro for the Acctg Dept that breaks down and sorts all the sales data and summarizes the info on separate sheets in a w-book.

99% of the time it works, sometimes it needs to be debugged.

Here's my main issue at the moment.
Keep in mind the data changes everymonth.

Using the data filter in the macro, I sort by Salesman Code, then copy the data over to his Commission sheet, then return and delete the data. That way what is ever is left is Non Commissional Sales and I can then copy that over to a separate sheet.

All has been well since recently.

I have a block of sorted data for a Salesman.
I GOTO (for simplicity sake) to A1.
I use the coding : ActiveCell.Offset(1, 0).Activate
which in the past has neatly dropped down to the first line of "visible" data, then I can C+S+E and copy it over.
Now it doesn't. It drops the cursor down to A2 rather than perhaps the first line of data which starts in A12.

What can I do to accomplish what appears like a simple move?

I'm desperate and our end of month is Dec 21.

Please help,
Mike
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Anthony's VBA Forum Index -> General Excel VBA All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group