Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Macro help with filing

Is it possible and how do you do this:

On an excel sheet I'm going to have (see below)

Doc. Reference Doc.No Topic Orgntr Doc. Type
Created Modified

ABC 0001 123 cost dm
ppt 18/03/2009


All I want is when the topic and doc type column has been filled in. A Marco
fills in orgnt (dm) and created column (date)and also creates the document
and saves it as 123 (for eg)


Hope you can help........... thanks




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 897
Default Macro help with filing

If Topic was in column D and Doc type was column F (per your example),
just fill this formula down in column E:

=IF(AND(NOT(ISBLANK(D2)),NOT(ISBLANK(F2))),"dm","" )

Assuming row 1 is your header row. For your date, just click a cell in
column G (or whatever column you want) and press Ctrl-; (semicolon).

No macros needed.

To save your document with a given filename, here's a macro:

Sub SaveAsFile()

Dim fileN As String
fileN = Application.GetSaveAsFilename
If fileN < False Then
ActiveWorkbook.SaveAs Filename:=fileN, FileFormat:=xlNormal
End If

End Sub

HTH,
JP

On Mar 18, 5:46*am, "Stig - tame racing driver" <Derek-
wrote:
Is it possible and how do you do this:

On an excel sheet I'm going to have (see below)

* * * *Doc. * * *Reference * * *Doc.No * * * Topic * * Orgntr Doc. * * *Type
Created Modified

* * * ABC * * * * 0001 * * * * * * * 123 * * * * * *cost * * * * * dm
ppt * * * * * *18/03/2009

All I want is when the topic and doc type column has been filled in. A Marco
fills in orgnt (dm) and created *column (date)and also creates the document
and saves it as 123 (for eg)

Hope you can help........... thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Macro help with filing

Thank you

"JP" wrote in message
...
If Topic was in column D and Doc type was column F (per your example),
just fill this formula down in column E:

=IF(AND(NOT(ISBLANK(D2)),NOT(ISBLANK(F2))),"dm","" )

Assuming row 1 is your header row. For your date, just click a cell in
column G (or whatever column you want) and press Ctrl-; (semicolon).

No macros needed.

To save your document with a given filename, here's a macro:

Sub SaveAsFile()

Dim fileN As String
fileN = Application.GetSaveAsFilename
If fileN < False Then
ActiveWorkbook.SaveAs Filename:=fileN, FileFormat:=xlNormal
End If

End Sub

HTH,
JP

On Mar 18, 5:46 am, "Stig - tame racing driver" <Derek-
wrote:
Is it possible and how do you do this:

On an excel sheet I'm going to have (see below)

Doc. Reference Doc.No Topic Orgntr Doc. Type
Created Modified

ABC 0001 123 cost dm
ppt 18/03/2009

All I want is when the topic and doc type column has been filled in. A
Marco
fills in orgnt (dm) and created column (date)and also creates the document
and saves it as 123 (for eg)

Hope you can help........... thanks



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
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM


All times are GMT +1. The time now is 08:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"