Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Runtime error 13 type mismatch ?


The following code is giving me a type mismatch error. CL is defined i
DBimportfrm when it is run. The way this works is the Get_click bring
up the listbox and the selection is taken from a row (cl) and transpose
into 3 different columns. i wan't to copy those 3 columns after the
have been modified and paste them back to the row (cl) it came from.

Thanks for looking
JoeH

Public Sub Get_Click()
DBimportfrm.Show

End Sub


Public Sub Save_Click()
'Dim cl As Integer
Beep
MsgBox "This will over write the current information!"
vbExclamation, ""

------- Type mismatch occurs here -------

Wit
Workbooks("TestCalcs_rev22.xls").Worksheets("initi al_information")
.Cells("E30:E88").Copy

Workbooks("bondsdb.xls").Worksheets("sheet1").Colu mns("AB").Rows(cl)
_
PasteSpecial xlPasteAll, Transpose:=True
.Cells("F30:F88").Copy

Workbooks("bondsdb.xls").Worksheets("sheet1").Colu mns("CJ").Rows(cl)
_
PasteSpecial xlPasteAll, Transpose:=True
.Cells("H30:H88").Copy

Workbooks("bondsdb.xls").Worksheets("sheet1").Colu mns("ER").Rows(cl)
_
PasteSpecial xlPasteAll, Transpose:=True
End With

End Su

--
Joe
-----------------------------------------------------------------------
JoeH's Profile: http://www.excelforum.com/member.php...fo&userid=1413
View this thread: http://www.excelforum.com/showthread.php?threadid=26346

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Runtime error 13 type mismatch ?

Change CELLS to RANGE

--
Regards,
Tom Ogilvy

"JoeH" wrote in message
...

The following code is giving me a type mismatch error. CL is defined in
DBimportfrm when it is run. The way this works is the Get_click brings
up the listbox and the selection is taken from a row (cl) and transposed
into 3 different columns. i wan't to copy those 3 columns after they
have been modified and paste them back to the row (cl) it came from.

Thanks for looking
JoeH

Public Sub Get_Click()
DBimportfrm.Show

End Sub


Public Sub Save_Click()
'Dim cl As Integer
Beep
MsgBox "This will over write the current information!",
vbExclamation, ""

------- Type mismatch occurs here -------

With
Workbooks("TestCalcs_rev22.xls").Worksheets("initi al_information")
Cells("E30:E88").Copy

Workbooks("bondsdb.xls").Worksheets("sheet1").Colu mns("AB").Rows(cl).
_
PasteSpecial xlPasteAll, Transpose:=True
Cells("F30:F88").Copy

Workbooks("bondsdb.xls").Worksheets("sheet1").Colu mns("CJ").Rows(cl).
_
PasteSpecial xlPasteAll, Transpose:=True
Cells("H30:H88").Copy

Workbooks("bondsdb.xls").Worksheets("sheet1").Colu mns("ER").Rows(cl).
_
PasteSpecial xlPasteAll, Transpose:=True
End With

End Sub


--
JoeH
------------------------------------------------------------------------
JoeH's Profile:

http://www.excelforum.com/member.php...o&userid=14138
View this thread: http://www.excelforum.com/showthread...hreadid=263468



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
xpath error? Runtime Error 13 type mismatch Steve M[_2_] Excel Discussion (Misc queries) 0 January 17th 08 01:16 AM
xpath error? Runtime Error 13 type mismatch SteveM Excel Discussion (Misc queries) 1 December 4th 07 09:16 AM
multiple file uploading - runtime error'13': type mismatch "While Counter <= UBound(FName)" Sinner Excel Discussion (Misc queries) 3 March 1st 07 09:44 AM
Runtime Error 13 - type mismatch hindlehey Excel Discussion (Misc queries) 1 November 7th 05 02:51 PM
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error rdavis7408 Excel Programming 1 August 25th 04 03:54 AM


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