PC Review


Reply
Thread Tools Rate Thread

How to delete previous data from 1 macro before running the next m

 
 
KS-Macro
Guest
Posts: n/a
 
      22nd Sep 2009
Hi!
Hope someone can help. I'm sure this is probably very easy for someone. :-)

I have a workbook and 1 tab is called OEM material with about 1000 items
listed and sorted by categories and another tab called Template.

I have created 11 macros that will select certain data by category from the
OEM material tab and insert it in a selected area on the Template tab. The
different categories of data selected are all different sizes but pasted in
the same starting point (ex. cell B1). If I click on macro "A" I get my list
of items from the OEM material tab. When I click on macro "B" I get my
correct list of items from the OEM material tab HOWEVER, the list is smaller
than macro "A" data, and when macro "B" is ran, data from B pastes onto A
but some of the data from A is still visible.
So, how do I have the macro delete the current macro data before running
(pasting) the next selection of data?

Thanks!
KS

 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a
 
      22nd Sep 2009
The way I read your post you are talking about Excel and this is a newsgroup
for Access, a relational database product the is part of Microsoft Office
Professional.

Suggest you post to a newsgroup for Excel.

--
Build a little, test a little.


"KS-Macro" wrote:

> Hi!
> Hope someone can help. I'm sure this is probably very easy for someone. :-)
>
> I have a workbook and 1 tab is called OEM material with about 1000 items
> listed and sorted by categories and another tab called Template.
>
> I have created 11 macros that will select certain data by category from the
> OEM material tab and insert it in a selected area on the Template tab. The
> different categories of data selected are all different sizes but pasted in
> the same starting point (ex. cell B1). If I click on macro "A" I get my list
> of items from the OEM material tab. When I click on macro "B" I get my
> correct list of items from the OEM material tab HOWEVER, the list is smaller
> than macro "A" data, and when macro "B" is ran, data from B pastes onto A
> but some of the data from A is still visible.
> So, how do I have the macro delete the current macro data before running
> (pasting) the next selection of data?
>
> Thanks!
> KS
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to find the previous thursday before running a macro Brian S Microsoft Excel Programming 6 8th Apr 2010 06:04 PM
How to delete previous data from 1 macro before running the next? KS-Macro Microsoft Excel Programming 4 22nd Sep 2009 07:43 PM
Macro with column delete running very slowly Code Numpty Microsoft Excel Programming 11 2nd Oct 2008 03:15 PM
Delete Macro After Running Bill Oertell Microsoft Excel Programming 5 24th Dec 2003 03:48 AM
Macro that will autofill a column with data, up to the last row of data in previous c Max Velocity Microsoft Excel Programming 4 27th Nov 2003 10:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 AM.