LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Seqentual number save

In principle yes, but obviously there is no activeworkbook (don't know the
word equivalent, something like activedocument).

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Peter Finlay" wrote in message
...
Would this also work for word??











"Bob Phillips" wrote in message
...
Peter,

This sounds like this should do it.

Firstly, put this code into a standard code module in the Personal.xls
workbook, (go into the VBE, Alt-F11, select Personal.xls, and insert a

code
module, InsertModule) and copy this code in

Sub WbSave()
Application.DisplayAlerts = False
With ActiveWorkbook
.SaveAs Filename:="NonCon" & .Worksheets("Sheet1").Range("report
#").Value & ".xls"
End With
Application.DisplayAlerts = True
End Sub

Then we will add a button to the toolbar. Go to
ToolsCustomnizeCoimmandsMacros and drag the smiley face onto an

existing
toolbar. Right-click the icon, and assign the newly created macro. The
picture can be changed to your design.

If many team members are to use this, you will need to repeat this on

each
machine.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Peter Finlay" wrote in message
...
Hi All,

I am designing a "Non-Conformance report" from word. I'd like my team
members to open this file, type the information in, automatically

print
after the last cell has been selected, then save automatically (as the

next
sequential number we actually type into the report) and saved in the

folder
where the reports are stored.

eg. therefore, if we enter a number, say 1111, into the "report #"

field
I
would like the file to be saved as NonCon1111.doc. Would anyone be

able
to
help create this macro? (please keep in mind that my computer

programming
skills arn't as great as everyone else's in here!

Thankyou everyone.

Please reply to

Kind regards

Peter Finlay








 
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
Save Random Number Paul B. Excel Worksheet Functions 5 April 3rd 15 03:50 AM
save Excel calc' as the number Rich01260 Excel Discussion (Misc queries) 2 February 14th 07 10:44 AM
Save file name with version number ianh Excel Discussion (Misc queries) 1 March 1st 06 02:08 PM
Auto save with a numerical number Sean Leonard Excel Discussion (Misc queries) 1 May 7th 05 05:04 AM
save a new number format for other worksheets JerryAustin Excel Discussion (Misc queries) 1 January 15th 05 12:17 PM


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