Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default Report number

My boss was asking me to make a macro that could do something like this.

The workbook has 7 sheet's, each sheet is a report, sheet 1 is an x-ray
report, sheet 2 is an dyepen report etc etc. Every report has its own report
number (from report 1 to .....). My boss's problem is that different user's
use a report number that may have been used before. He want's me to make a
macro that controll the input on every report, thats not a problem.

My problem is that, in cell D5, the report number should +1 for every time a
report is made. Also, the first time its opened it should be 1 the second
time its opened it should be 2, and this only for the active sheet. Is this
possible?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Report number

Michael,

I'm afread if it is a multuser report and all users should use distinct
report numbers for each sheet, it would be best to split up the
workbook per report/sheet. Also your file should be on the network.

I can help you with a Macro that will:

Update a number on opening the workbook from the newtork, and will also
save that back to the network, so other people opening it will user
other numbers.
After that the code will prompt the user to save the file locally for
further processing, so other people can access the network file again.

This ensures unique numbers across all users using the workbook on the
network

DM Unseen

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Report number

Better to write the number to a network file wouldn't it and then increment
that number at the appropriate time.

--
HTH

Bob Phillips

"DM Unseen" wrote in message
oups.com...
Michael,

I'm afread if it is a multuser report and all users should use distinct
report numbers for each sheet, it would be best to split up the
workbook per report/sheet. Also your file should be on the network.

I can help you with a Macro that will:

Update a number on opening the workbook from the newtork, and will also
save that back to the network, so other people opening it will user
other numbers.
After that the code will prompt the user to save the file locally for
further processing, so other people can access the network file again.

This ensures unique numbers across all users using the workbook on the
network

DM Unseen



  #4   Report Post  
Posted to microsoft.public.excel.programming
VoG VoG is offline
external usenet poster
 
Posts: 1
Default Report number

Sub Auto_Open()
Range("D5").Value = Range("D5").Value + 1
End Sub


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200507/1
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Report number

See J.E. McGimpsey's site for some sample code:

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

Which may help.
--
Regards,
Tom Ogilvy

"Michael" wrote in message
...
My boss was asking me to make a macro that could do something like this.

The workbook has 7 sheet's, each sheet is a report, sheet 1 is an x-ray
report, sheet 2 is an dyepen report etc etc. Every report has its own

report
number (from report 1 to .....). My boss's problem is that different

user's
use a report number that may have been used before. He want's me to make a
macro that controll the input on every report, thats not a problem.

My problem is that, in cell D5, the report number should +1 for every time

a
report is made. Also, the first time its opened it should be 1 the second
time its opened it should be 2, and this only for the active sheet. Is

this
possible?





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
Pls help to find number of days for ageing report pol Excel Discussion (Misc queries) 3 December 2nd 09 12:16 PM
how do I increase the number of columns in a report? jes Excel Discussion (Misc queries) 1 September 10th 07 09:09 PM
Add totals at end of the report with unknow number of rows with VB SITCFanTN New Users to Excel 3 June 4th 06 08:17 PM
Report a given number in days:hours:minutes ? TigerLord Excel Discussion (Misc queries) 2 March 26th 06 08:25 PM
How can I get a report on the number of field changes made in Exce j.sjoberg Excel Discussion (Misc queries) 1 May 27th 05 03:40 PM


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