LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Kc Kc is offline
external usenet poster
 
Posts: 2
Default Help, excel error 53 (loading userform) <== problem solved

Yes, you're right.
After hours of looking, suddenly i notice the problem.
It was a stupid problem; but my problem ;-)

The code in userform Maatvoering:

Private Sub UserForm_Initialize()

filenaam = Range("C100")
If filenaam = "Geen" Then
MsgBox "Selecteer eerst de juiste poort / hekwerk!" & Chr$(13) & _
"anders valt er niets te berekenen."
Exit Sub
End If

filenaam = "C:\CALCULATIE\" & filenaam & "A.bmp"
Image1.Picture = LoadPicture(filenaam)

In the name of the file cel "C100" there was a (how do you call it ??) a double space ??, but the image picture on the harddisk had only one space.

Range (C100) contents "Hek 100" (double space) ; filename on disk 'Hek 100" (one space)'
THat was the problem.

RB Smissaert and , thanks for thinking about this problem.

================================================== ======================

Is there some code in the UserForm_Activate() or UserForm_Initialize ()
events that may have to do with this?
Put a Stop before Load Maatvoering and step through your code with F8.

RBS


"Kc" wrote in message
ll.nl...
Hi all,

Sorry for my bad englisch.
I wrote a program in Excel that only calls a form to load when in range
"C100" the word "Geen" excist.

Private Sub CommandButton9_Click()
If Range("C100").Value = "Geen" Then
MsgBox "Selecteer eerst een poort of en hek, anders werkt het
programma niet ;-)"
Exit Sub
End If

Load Maatvoering
Maatvoering.Show
End Sub



--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from
http://www.shemes.com/ =-

 
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
Error Loading UserForm ZipCurs Excel Programming 5 April 24th 12 09:21 AM
Help, excel error 53 (loading userform) Kc Excel Programming 2 November 18th 07 04:13 PM
Error on loading userform Trader Excel Programming 4 April 19th 07 05:00 PM
Loading userform problem Mats Nilsson Excel Programming 2 October 25th 06 02:06 PM
Loading UserForm gives error Mats Samson Excel Programming 3 August 3rd 05 08:06 AM


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