Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy a record before deleting


Dear sir,
When program reaches the below given code
--------------------------------
ans = MsgBox("Delete Record?", _
"Delete this record?", vbYesNo)
---------------------

it gives error showing "Run time error -'13' Type mismatch. Could yo
pls. look into this matter

Thanks
Shin

--
ShinuPosted from - http://www.officehelp.i

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy a record before deleting


Dear sir,
Now when the program reached to the following code starting with set
-------------------------------------
With Sheets("DeletedRecords")
Set rng2 = .Range("A1").End(xlDown) _
.Offset(1, 0)
End With
--------------------------------
it shows Run time error '1004' Application defined or Object define
erro

--
ShinuPosted from - http://www.officehelp.i

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Copy a record before deleting

Missing a period after (xlDown)

With Sheets("DeletedRecords")
Set rng2 = .Range("A1").End(xlDown).Offset(1, 0)
End With

You might want to be careful with that approach: it will fail for cases
where the xlDown takes you to the last row and then you try to offset one
more row... Working from the bottom up is usually safer.

Tim



"Shinu" wrote in message
...

Dear sir,
Now when the program reached to the following code starting with set
-------------------------------------
With Sheets("DeletedRecords")
Set rng2 = .Range("A1").End(xlDown) _
Offset(1, 0)
End With
--------------------------------
it shows Run time error '1004' Application defined or Object defined
error


--
ShinuPosted from - http://www.officehelp.in



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy a record before deleting


Thanks for the help
Shin

--
Shin
Posted from - http://www.officehelp.i

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
Copy Unique Record Kim Excel Discussion (Misc queries) 2 August 27th 09 07:35 PM
Copy and paste from last record at bottom of column [email protected] New Users to Excel 0 February 7th 06 10:25 PM
Copy a record before deleting Tom Ogilvy Excel Programming 0 February 5th 06 03:33 AM
Deleting a record from Access data base using programming from excel dipak Excel Programming 1 October 18th 05 02:49 PM
how to copy record only with amount from 1 sheet to another tango Excel Programming 1 October 22nd 04 12:02 PM


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