Unique Number

T

Thomas Cox

I am creating an Invoice template in which I need it to generate a unique
random number each time the spreadsheet is opened. Anyone have any ideas
that I could try? Thanks
Tom
 
R

Roman

You can use this macro:

sub auto_open ()
thisworkbook.sheets("sheet1").range("b2").value = _
thisworkbook.sheets("sheet1").range("b2").value +1
end sub

R.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top