Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating a Macro

I know how to create a macro, but I have a question. I get a report every month that I download to a excell file. It has equipment broken down by department. I then create tables, get rid of the extra colums, group the items under the department so I can choose what I want to see, etc. I could create a macro to do this every month, but the problem is that the amount of information changes. One month I could have 100 pieces of equipment that come up under a given department, and the next month 2. Is there a wat to set up a macro so that it can compensate for this?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 538
Default Creating a Macro

Keith Ader wrote:

I know how to create a macro, but I have a question. I get a report
every month that I download to a excell file. It has equipment broken
down by department. I then create tables, get rid of the extra colums,
group the items under the department so I can choose what I want to see,
etc. I could create a macro to do this every month, but the problem is
that the amount of information changes. One month I could have 100
pieces of equipment that come up under a given department, and the next
month 2. Is there a wat to set up a macro so that it can compensate for
this?


Sure, but the actual doing will depend largely on the data you receive: What
format do you receive the data in? Are the columns the same every month? Are
there column headers in the source data? Etc.

--
I'm sorry. Would you like to squish a marshmallow?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 621
Default Creating a Macro

Short answer.............yes, you can do what you need.

As you have found out when recording, Excel will generally record
fixed range references.

You could try recording using the Relative mode which will show you
how to use the Offset method but even that is not optimal.

There are methods for working on variable ranges only but would need
much more detail than you have given.



Gord

On Mon, 02 Apr 2012 16:47:32 GMT, Keith Ader wrote:

I know how to create a macro, but I have a question. I get a report every month that I download to a excell file. It has equipment broken down by department. I then create tables, get rid of the extra colums, group the items under the department so I can choose what I want to see, etc. I could create a macro to do this every month, but the problem is that the amount of information changes. One month I could have 100 pieces of equipment that come up under a given department, and the next month 2. Is there a wat to set up a macro so that it can compensate for this?

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
Creating a macro which presses a button containing a recorded macro petros89[_3_] Excel Programming 3 October 5th 05 02:49 PM
Creating a macro Gene Goldenfeld New Users to Excel 10 May 5th 05 04:28 PM
Creating a Macro DeRizzio Excel Programming 6 November 16th 04 02:32 PM
Creating a Macro Lynch Excel Programming 1 May 5th 04 12:01 AM
Help Creating a Macro milton Excel Programming 3 October 21st 03 09:04 PM


All times are GMT +1. The time now is 04:06 AM.

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

About Us

"It's about Microsoft Excel"