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: 9
Default Now Function Question

I'm trying to use the Now function in VBA. I continue to get a compile
error: Expected function or variable. The error highlights on the word, Now.
The formula below is an example of the code.

Sub Dateparttest()
Dim today
today = Month(Now)
Range("b1").Value = today

End Sub



 
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
Function Question Having Issues Excel Worksheet Functions 5 May 18th 09 10:17 PM
Function Question SteveDB1 Excel Worksheet Functions 8 March 16th 09 02:23 PM
Function Question steinerdf Excel Worksheet Functions 3 February 18th 09 10:54 PM
IF Function question. Excel beginner Excel Worksheet Functions 6 August 9th 07 04:13 PM
Function Question Andrew Excel Worksheet Functions 2 May 25th 05 07:58 AM


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