LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Save As with Cell Verification

I have the ff macro which works great and saves the spreadsheet, but I need
an additional verfication before the macro is run:

Sub Save_As()
Dim objShell As Object
Dim objFolder As Object
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(&H5&)
Application.Dialogs(xlDialogSaveAs).Show _
objFolder.Self.Path & "\" & Range("f1").Value & ".xls"
End Sub

I need for the macro to verify either the group of cells A1, B1, C1 OR the
group of cells A1, B1, D1 be populated before the above macro is allowed to
run.
If neither of the two criteria are TRUE, then an error message window comes
up to say "Populate Required Fields" then give the user an option to Cancel
or Retry the operation.

Thanks much.

 
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
cell verification Firkins Excel Discussion (Misc queries) 2 October 2nd 07 05:40 PM
General Cell Data Verification and Copy... jgbadingerjr Excel Discussion (Misc queries) 3 January 1st 07 10:45 PM
data verification Kristen Excel Discussion (Misc queries) 0 July 14th 06 02:31 PM
How's this verification done? Lava[_4_] Excel Programming 7 October 14th 05 09:30 AM
Name Verification MAWII Excel Programming 1 July 29th 05 05:52 PM


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