Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
simonsmith
 
Posts: n/a
Default run-time 13 Type mismatch


Hi,
Does anyone know why i get this when I run my macro (excel 2000)
Any fixes??
Cheers

Simon


--
simonsmith
------------------------------------------------------------------------
simonsmith's Profile: http://www.excelforum.com/member.php...o&userid=34235
View this thread: http://www.excelforum.com/showthread...hreadid=543183

  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default run-time 13 Type mismatch

Debug it (open the code in the editor and press F8), and post which part
returns the error

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"simonsmith" wrote
in message ...

Hi,
Does anyone know why i get this when I run my macro (excel 2000)
Any fixes??
Cheers

Simon


--
simonsmith
------------------------------------------------------------------------
simonsmith's Profile:
http://www.excelforum.com/member.php...o&userid=34235
View this thread: http://www.excelforum.com/showthread...hreadid=543183



  #3   Report Post  
Posted to microsoft.public.excel.misc
simonsmith
 
Posts: n/a
Default run-time 13 Type mismatch


It doesnt seem to like the P5 reference to a sheet name. I did not do
this so dont really know what is going on,
Any help very much appreciated

Thanks
Simon


' Dim sh as Worksheet, sh2 as Worksheet
Dim strSheetName As String
strSheetName = Cells(5, 16).Value

Dim i As Long, j As Long
Dim rng As Range, cell As Range
Set sh = Worksheets("sheet1")
Set sh1 = Worksheets("Compiler")
j = 1
Do While sh.Name < sh1.Name
Set rng = sh.Range(sh.Range(sh.Range("p3")), _
sh.Range(sh.Range("p4")))
i = 0
For Each cell In rng
i = i + 1
sh1.Cells(i, j).Value = cell.Value
Next
j = j + 1
Set sh = Worksheets(sh.Range("p5"))
'(sh.Range("P5"))
Loop
sh1.Activate
Range("p5").Select
End Sub


--
simonsmith
------------------------------------------------------------------------
simonsmith's Profile: http://www.excelforum.com/member.php...o&userid=34235
View this thread: http://www.excelforum.com/showthread...hreadid=543183

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
Every time I type 24-7 it changes to 24/Jul no matter what James-Holland Excel Discussion (Misc queries) 2 February 9th 06 04:08 PM
Runtime Error 13 - type mismatch hindlehey Excel Discussion (Misc queries) 1 November 7th 05 02:51 PM
type mismatch on saving excel calculation mode via VB app Ken Shaffer Excel Discussion (Misc queries) 3 November 2nd 05 01:51 PM
Time and motion chart deant Charts and Charting in Excel 0 September 21st 05 08:22 AM
how do i type a time into a cell formatted for time? Armadillo Excel Discussion (Misc queries) 4 June 16th 05 11:32 PM


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