Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Select a Range of column depending on the date

Good afternoon to you all.

I have a report build on 12 month, wich every month contain several column.
Ie. August : A to J
September : K to S
etc.
I named all my ranged, but now, i need my macro to select the certain ranged
in relation with the current month.
Funny twist, it's going to be used on french and english computer, so, i
can't name my months in the macro and just used that as my selection. Thats
why i named all my month with the Dirty Dozen names.
Now, i need something that will convert the date a data that i can use as a
reference. Cause, i can't named my fields with only a number... Excel Freaks
out!

i need something like ctxt(monthdate(today)).select an named my field one two
three four, and even that, i'm not sure if it's going to work for french!

Any ideas or questions???

Batty

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200705/1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Select a Range of column depending on the date

I found my answer.

I named all my range like such :

Dim February As Range
Set February = Range("cn1:cv48")

And then,

A = Month(Date)
Select Case A:
Case Is = 8
August.Select


There you go!!

Batty




Battykoda wrote:
Good afternoon to you all.

I have a report build on 12 month, wich every month contain several column.
Ie. August : A to J
September : K to S
etc.
I named all my ranged, but now, i need my macro to select the certain ranged
in relation with the current month.
Funny twist, it's going to be used on french and english computer, so, i
can't name my months in the macro and just used that as my selection. Thats
why i named all my month with the Dirty Dozen names.
Now, i need something that will convert the date a data that i can use as a
reference. Cause, i can't named my fields with only a number... Excel Freaks
out!

i need something like ctxt(monthdate(today)).select an named my field one two
three four, and even that, i'm not sure if it's going to work for french!

Any ideas or questions???

Batty


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200705/1

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
Select stock code depending on description in next column sako 338 Excel Worksheet Functions 4 March 1st 07 02:32 AM
select detail in column B if column A = date Dan B Excel Worksheet Functions 0 September 18th 06 04:46 PM
select date range in column garlocd Excel Worksheet Functions 2 July 11th 06 06:23 AM
hOW DO i CHANGE COLUMN WIDTH FOR ONLY A SELECT RANGE OF CELLS? RCONLON_291 Excel Discussion (Misc queries) 2 September 16th 05 11:24 AM
date criteria to select range Kstalker Excel Worksheet Functions 30 August 23rd 05 07:19 AM


All times are GMT +1. The time now is 12:47 PM.

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"