close

Hello:

I am very new to coding and would appreciate some guidance. Does anyone
know or are there any sites which give sample code for VB in Excel and most
specifically having a spreadsheet quot;pullquot; the system date. I am going to
University plus working for accounting firms, so don't know where to search
on begin on looking to have a macro which displays the date code. Also, is
there any code for counting say to put an invoice number on a spreadsheet.
Thanks for all of your help.

--
Enjoy learning everything possible in life.


Hello Artemis,

You can return the system date and time by [lacing the formula below in
a cell on your worksheet

=NOW()

As for the rest of question, there is a plethora of books on using
Excel as well as writing macros. First you need to learn the basics of
a spreadsheet, learn where and how to use the help files, and finally
move on to more advanced topics.

Sincerely,
Leith Ross--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: www.excelforum.com/member.php...oamp;userid=18465
View this thread: www.excelforum.com/showthread...hreadid=506219Leith gave you a function for date and time.

=today() gives the date.

You can also use a short cut key to put the current date in a cell:
ctrl-; (control-semicolon)

ctrl-: (control-shift-semicolon or control-colon)
will give the time.

The formulas
=today()
=now()
will change when the date/time changes (and the workbook recalculates)
Artemis wrote:
gt;
gt; Hello:
gt;
gt; I am very new to coding and would appreciate some guidance. Does anyone
gt; know or are there any sites which give sample code for VB in Excel and most
gt; specifically having a spreadsheet quot;pullquot; the system date. I am going to
gt; University plus working for accounting firms, so don't know where to search
gt; on begin on looking to have a macro which displays the date code. Also, is
gt; there any code for counting say to put an invoice number on a spreadsheet.
gt; Thanks for all of your help.
gt;
gt; --
gt; Enjoy learning everything possible in life.

--

Dave Peterson

Hi Artemis,
Dave Peterson gave you answers using worksheet formulas, the formatting
of the date relies on your system short date (Control Panel). You can modify
the format from that default.

But I expect the your question really concerns use in VBA, so you would
want to look up DATE from the Visual Basic Editor (VBE) in HELP from there.

More information on Date and Time can be found in
www.mvps.org/dmcritchie/excel/datetime.htm
www.cpearson.com/excel/datetime.htm

In rereading the question, you definitely asked about VB, so the subject does
not match the question. Asking questions takes quite a bit of effort to ask a
question and get an answer the first time that is one that would work best for you.
If you asked for a specific format for instance you would get a specific answer.

Since you are taking Excel in University you certainly should be familiar with the
many excellent Excel tutorials available online to anyone.
www.mvps.org/dmcritchie/excel....htm#tutorials
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: www.mvps.org/dmcritchie/excel/excel.htm
Search Page: www.mvps.org/dmcritchie/excel/search.htm

quot;Artemisquot; gt; wrote in message ...
gt; Hello:
gt;
gt; I am very new to coding and would appreciate some guidance. Does anyone
gt; know or are there any sites which give sample code for VB in Excel and most
gt; specifically having a spreadsheet quot;pullquot; the system date. I am going to
gt; University plus working for accounting firms, so don't know where to search
gt; on begin on looking to have a macro which displays the date code. Also, is
gt; there any code for counting say to put an invoice number on a spreadsheet.
gt; Thanks for all of your help.
gt;
gt; --
gt; Enjoy learning everything possible in life.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()