Run-time error '13' Type mismatch

tania_r

New Member
Joined
Aug 16, 2011
Messages
2
Hi everyone,

From what I already read on this forum this is a very common error but the existent threads didn't help me though.

This is the first time I'm programming in Excel/VBA and I'm doing something really simple. I need this for image processing: I have two columns with x and y coordinates, and want to make them look like (80.524, 5.24),
So I'm just merging the columns (+xcoordinate+, and ycoordinate+)+,

My whole code is:

Code:
Sub Ordz()
x = 1
Do While x < "7913"
'Do While Cells(x, 1).Value <> ""
[B]Cells(x, 8).Value = Cells(x, 1).Value + Cells(x, 2).Value + Cells(x, 3).Value[/B]
Cells(x, 9).Value = Cells(x, 4).Value + Cells(x, 5).Value + Cells(x, 6).Value
x = x + 1
Loop
End Sub

The error line is the 5th (or the 6th if I comment the 5th). The commented 4th line, I used it to see if it made a difference and it didn't...

Thank you in advance !

Cheers,
Tania
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Should it be?

Rich (BB code):
Cells(x, 8).Value = Cells(x, 1).Value & Cells(x, 2).Value & Cells(x, 3).Value
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top