Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default more VBA code help...please!

I would think your code would be almost identical to the other code...

But this...


If FoundAGroupMatch = True Then
MsgBox "This log has already been copied to the database", _
vbExclamation
'exit sub '????
'...

would change


If FoundAGroupMatch = True Then
'already there
else
msgbox "the data ain't there yet."
end if



Anthony wrote:

Dave,
sorry, but any chance of some code????
wouldn't know where to start - apart from
Sub marco_test
End sub
Thanks again

"Dave Peterson" wrote:

It kind of sounds like you could use that same code that checks before it
copies.

But this time, if you don't see a match, you issue the warning (instead of
warning if you do find a match).

Anthony wrote:

Hi again,

when the user exits my workbook I want some code to check and see if the
data on the worksheet (data entered in range A7:O100) has already been added
to the 'database' (a worksheet named database). If it hasn't then add aLL the
data then show a msg box stating
-data copied to database please save and close programe again-
If it has then close save and close the programme

any help apreciated
many thanks


--

Dave Peterson


--

Dave Peterson
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
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
Create a newworksheet with VBA code and put VBA code in the new worksheet module ceshelman Excel Programming 4 June 15th 05 04:37 PM
stubborn Excel crash when editing code with code, one solution Brian Murphy Excel Programming 0 February 20th 05 05:56 AM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM


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