Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA format function Win2000 and WinXP

I am using the "Format function" to format the apperance of the caption of a
label in a dialog box. The "Format function" is working ok on my Win2000
computer. But when I switch copmputer to my WinXp computer, the "Format
function" is not working. It seems like the "Format function" will not work
when the worksheet is created on a Win2000 computer and then later is opend
on a computer using WinXP.

Plate.lbl49.Caption = Format(Worksheets("DimAlu").Cells(44, 2).Value, "###
### ###")

This line of code wil format the caption in label (lbl49) on the dialogbox
(Plate) with space between every third digit. It works on Win200 computers,
but not on a WinXP computer.

Is there anybody who know why this is happening and what is the solution to
this problem?

Tord
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA format function Win2000 and WinXP

on the WinXP computer, after the error, go into the VBE to tools=References
and see if you have a reference marked MISSING.

If so, fix this reference as it is the cause of your problem - probably
totally unrelated to Format, but that is where the error manifests.

the lazy workaround would be vba.Format instead of just format.

--
Regards,
Tom Ogilvy


"Tord" wrote in message
...
I am using the "Format function" to format the apperance of the caption of

a
label in a dialog box. The "Format function" is working ok on my Win2000
computer. But when I switch copmputer to my WinXp computer, the "Format
function" is not working. It seems like the "Format function" will not

work
when the worksheet is created on a Win2000 computer and then later is

opend
on a computer using WinXP.

Plate.lbl49.Caption = Format(Worksheets("DimAlu").Cells(44, 2).Value, "###
### ###")

This line of code wil format the caption in label (lbl49) on the dialogbox
(Plate) with space between every third digit. It works on Win200

computers,
but not on a WinXP computer.

Is there anybody who know why this is happening and what is the solution

to
this problem?

Tord



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
xyScatterChart macro works on WinXP Pro & not on WinXP Home? [email protected] Excel Discussion (Misc queries) 0 July 18th 05 12:30 AM
VBA Using 2 OS (Win98 & Winxp) Cyber Excel Programming 2 October 28th 04 05:22 PM
VBA Using 2 OS (Win98 & Winxp) Cyber[_2_] Excel Programming 0 October 28th 04 06:02 AM
User CDO for Win2000 in Win98 Grey Excel Programming 1 May 24th 04 07:58 AM
XLL unrecognizable format in Win2000 leonard522 Excel Programming 0 May 24th 04 01:32 AM


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