LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help with Macro (networkdays function especially)

I'm working on a macro to help me edit a report for me automatically. I
am trying to finish this macro up but hit a wall.

I am trying to use the networkdays function in order to create a "Days
since last login" column filled with data.

I have a column with "Last Login" filled with data but I don't know how
to populate a range of cells with today's date and then use the
networkdays function to fill in the "Days since last login". In the
end, the TODAY column would be hidden.

For example:
LASTLOGIN Today Days since last login
1/1/2007
12/30/2006
12/29/2006


Into : (note, days may not be correct)

LASTLOGIN Days since last login
1/1/2007 9
12/30/2006 11
12/29/2006 12


Since this is for a list that changes week to week in terms of cell
range, I didn't know how to have the program choose a range of cells to
select the "Today" column without going past the amount of data on the
left. And then choosing the next column to put in all the "Days Since
Last Login" cells that are needed.

__________________________________________________ ________________________________

 
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
NETWORKDAYS function? Darin[_4_] Excel Programming 1 June 22nd 06 02:42 PM
Nesting Networkdays function inside and If function Addison Excel Worksheet Functions 2 April 13th 06 08:04 PM
how does one use the NETWORKDAYS function in a excel VB macro? AC Excel Programming 7 October 28th 05 12:35 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM
NETWORKDAYS Function in Macro Ken[_18_] Excel Programming 10 February 26th 04 08:00 PM


All times are GMT +1. The time now is 07:01 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"