Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default I need help creating a macro

I need to create a macro but am not real sure how. Here is what I am trying
to do.

In cell A6 is the current month. In cell A9-A22 I have a formula. Columns
E-P represent September-August (Sept is column E, October is column F, etc).
In cell E9-E22 (Sept), F9-F22 (Oct), etc. is the same formula that is in cell
A9-A22. (the formula is supposed to change depending on the month that is in
cell A6).

So I need to figure out a macro that if A6= September, then A9-A22 will =
E9-E22 (september data), and if I change A6=October, then A9-A22 = F9-F22
(october data), etc.

Thank you in advance!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default I need help creating a macro

Turn on the Macro Recorder: Tools Macro Record New Macro. Then click
through the steps as usual.

Take a look at this:
http://www.anthony-vba.kefra.com/vba...ur_First_Macro

Regards,
Ryan---

--
RyGuy


"pdgarza" wrote:

I need to create a macro but am not real sure how. Here is what I am trying
to do.

In cell A6 is the current month. In cell A9-A22 I have a formula. Columns
E-P represent September-August (Sept is column E, October is column F, etc).
In cell E9-E22 (Sept), F9-F22 (Oct), etc. is the same formula that is in cell
A9-A22. (the formula is supposed to change depending on the month that is in
cell A6).

So I need to figure out a macro that if A6= September, then A9-A22 will =
E9-E22 (september data), and if I change A6=October, then A9-A22 = F9-F22
(october data), etc.

Thank you in advance!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default I need help creating a macro

What is actually in A6... A real date formatted to show only the month or
just the text (letters) that make up a month's name? If just the text is
entered in A6, is it **always** the full month's name, an abbreviation for
the month's name or the month's number? Note the word "always" that I
used... I'm looking for what possibilities are entered in A6.

--
Rick (MVP - Excel)


"pdgarza" wrote in message
...
I need to create a macro but am not real sure how. Here is what I am
trying
to do.

In cell A6 is the current month. In cell A9-A22 I have a formula.
Columns
E-P represent September-August (Sept is column E, October is column F,
etc).
In cell E9-E22 (Sept), F9-F22 (Oct), etc. is the same formula that is in
cell
A9-A22. (the formula is supposed to change depending on the month that is
in
cell A6).

So I need to figure out a macro that if A6= September, then A9-A22 will =
E9-E22 (september data), and if I change A6=October, then A9-A22 = F9-F22
(october data), etc.

Thank you in advance!


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
VBA macro creating pdf Brad Excel Discussion (Misc queries) 9 June 18th 08 10:25 PM
Creating a New Macro SharonJo Excel Discussion (Misc queries) 1 April 4th 08 01:27 AM
Help with creating a Macro [email protected] Excel Programming 1 May 4th 07 08:08 PM
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 paulM Excel Programming 2 April 17th 05 10:42 PM


All times are GMT +1. The time now is 03:48 PM.

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"