Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default I need Help Please

Hi every one
This error is aper in my program It's use it work ok

Here is the code

////////////////////////////////
Public Sub ClearSheet()
Dim Ws As Worksheet
Set Ws = ThisWorkbook.Worksheets("GLedger")
With Ws
With .Range("A3:G65536")
.Clear
With .Font
.Name = "Arial"
.FontStyle = "º¸Åë"
.Size = 9
End With
End With
.Range("A3:D65536").NumberFormatLocal = "@"
(the error in theis line--) .Range("E3:G65536").NumberFormatLocal
= "#,##0.00_ ;[»¡°*]-#,##0.00 "
.Range("J1").Activate
.Range("J23").Activate
End With

Set Ws = Nothing
End Sub
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default I need Help Please

On Jul 3, 4:28 pm, sahm wrote:
Hi every one
This error is aper in my program It's use it work ok

Here is the code

////////////////////////////////
Public Sub ClearSheet()
Dim Ws As Worksheet
Set Ws = ThisWorkbook.Worksheets("GLedger")
With Ws
With .Range("A3:G65536")
.Clear
With .Font
.Name = "Arial"
.FontStyle = "º¸Åë"
.Size = 9
End With
End With
.Range("A3:D65536").NumberFormatLocal = "@"
(the error in theis line--) .Range("E3:G65536").NumberFormatLocal
= "#,##0.00_ ;[»¡°*]-#,##0.00 "
.Range("J1").Activate
.Range("J23").Activate
End With

Set Ws = Nothing
End Sub
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\




Hi it's me agen
the error NO is 1004 Unable to set the NumberFromatLocal Property of
the Range Class

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default I need Help Please

On Jul 3, 11:28 pm, sahm wrote:
Hi every one
This error is aper in my program It's use it work ok

Here is the code

////////////////////////////////
Public Sub ClearSheet()
Dim Ws As Worksheet
Set Ws = ThisWorkbook.Worksheets("GLedger")
With Ws
With .Range("A3:G65536")
.Clear
With .Font
.Name = "Arial"
.FontStyle = "º¸Åë"
.Size = 9
End With
End With
.Range("A3:D65536").NumberFormatLocal = "@"
(the error in theis line--) .Range("E3:G65536").NumberFormatLocal
= "#,##0.00_ ;[»¡°*]-#,##0.00 "
.Range("J1").Activate
.Range("J23").Activate
End With

Set Ws = Nothing
End Sub
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


Hi Sahm

There appears to be some garbage characters in the second
NumberFormatLocal statement between the bracket characters [].
Removing them made it work ok on my system. I couldn't work out what
the characters represent, but usually it's a color word like [Red] or
a conditional expression such as [100]

Cheers
David

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default I need Help Please

On Jul 3, 4:36 pm, wrote:
On Jul 3, 11:28 pm, sahm wrote:



Hi every one
This error is aper in my program It's use it work ok


Here is the code


////////////////////////////////
Public Sub ClearSheet()
Dim Ws As Worksheet
Set Ws = ThisWorkbook.Worksheets("GLedger")
With Ws
With .Range("A3:G65536")
.Clear
With .Font
.Name = "Arial"
.FontStyle = "º¸Åë"
.Size = 9
End With
End With
.Range("A3:D65536").NumberFormatLocal = "@"
(the error in theis line--) .Range("E3:G65536").NumberFormatLocal
= "#,##0.00_ ;[»¡°*]-#,##0.00 "
.Range("J1").Activate
.Range("J23").Activate
End With


Set Ws = Nothing
End Sub
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


Hi Sahm

There appears to be some garbage characters in the second
NumberFormatLocal statement between the bracket characters [].
Removing them made it work ok on my system. I couldn't work out what
the characters represent, but usually it's a color word like [Red] or
a conditional expression such as [100]

Cheers
David


Dear Mr. David
Thank you for your Replay
It's Work with me
Best
Sahm

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



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