Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mia Mia is offline
external usenet poster
 
Posts: 101
Default Userform with currency format

Hi,

I cant get the userform to show arspremie in the right format.
I want to show it in currency, do anyone know how to do this?

My code a

Private Sub UserForm_Activate()
Application.OnTime Now + _
TimeValue("00:00:05"), "KillTheForm"
Dim namn As String
Dim antal As String
Dim arspremie As Currency

namn = Application.UserName
Label2 = namn


antal = Sheets("Uppföljning").Range("S4")
Label4 = antal & " st"

arspremie = Sheets("Uppföljning").Range("L3")
Label5 = arspremie
Format (arspremie, "Currency")

End Sub



--
Best regards
Mia
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 143
Default Userform with currency format

Label5 = Format(arspremie, "Currency")

you have to format variable before you use it.

"Mia" wrote in message
...
| Hi,
|
| I cant get the userform to show arspremie in the right format.
| I want to show it in currency, do anyone know how to do this?
|
| My code a
|
| Private Sub UserForm_Activate()
| Application.OnTime Now + _
| TimeValue("00:00:05"), "KillTheForm"
| Dim namn As String
| Dim antal As String
| Dim arspremie As Currency
|
| namn = Application.UserName
| Label2 = namn
|
|
| antal = Sheets("Uppföljning").Range("S4")
| Label4 = antal & " st"
|
| arspremie = Sheets("Uppföljning").Range("L3")
| Label5 = arspremie
| Format (arspremie, "Currency")
|
| End Sub
|
|
|
| --
| Best regards
| Mia

  #3   Report Post  
Posted to microsoft.public.excel.programming
Mia Mia is offline
external usenet poster
 
Posts: 101
Default Userform with currency format

Hi,

Thank you for your help but it doesen't work.

--
Best regards
Mia


"Homey" skrev:

Label5 = Format(arspremie, "Currency")

you have to format variable before you use it.

"Mia" wrote in message
...
| Hi,
|
| I cant get the userform to show arspremie in the right format.
| I want to show it in currency, do anyone know how to do this?
|
| My code a
|
| Private Sub UserForm_Activate()
| Application.OnTime Now + _
| TimeValue("00:00:05"), "KillTheForm"
| Dim namn As String
| Dim antal As String
| Dim arspremie As Currency
|
| namn = Application.UserName
| Label2 = namn
|
|
| antal = Sheets("Uppföljning").Range("S4")
| Label4 = antal & " st"
|
| arspremie = Sheets("Uppföljning").Range("L3")
| Label5 = arspremie
| Format (arspremie, "Currency")
|
| End Sub
|
|
|
| --
| Best regards
| Mia

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatting

arspremie.value = Sheets("Uppf??ljning").Range("L3")
Label5.Caption = Format (arspremie, "? #,##0.00")

Cheers



Mia wrote:

Hi,Thank you for your help but it doesen't work.--Best regardsMia"Homey" skrev:
20-Jan-10

Hi,

Thank you for your help but it doesen't work.

--
Best regards
Mia


"Homey" skrev:

Previous Posts In This Thread:

On Wednesday, January 20, 2010 5:21 AM
Mia wrote:

Userform with currency format
Hi,

I cant get the userform to show arspremie in the right format.
I want to show it in currency, do anyone know how to do this?

My code a

Private Sub UserForm_Activate()
Application.OnTime Now + _
TimeValue("00:00:05"), "KillTheForm"
Dim namn As String
Dim antal As String
Dim arspremie As Currency

namn = Application.UserName
Label2 = namn


antal = Sheets("Uppf??ljning").Range("S4")
Label4 = antal & " st"

arspremie = Sheets("Uppf??ljning").Range("L3")
Label5 = arspremie
Format (arspremie, "Currency")

End Sub



--
Best regards
Mia

On Wednesday, January 20, 2010 6:40 AM
Homey wrote:

Label5 = Format(arspremie, "Currency")you have to format variable before you
Label5 = Format(arspremie, "Currency")

you have to format variable before you use it.

| Hi,
|
| I cant get the userform to show arspremie in the right format.
| I want to show it in currency, do anyone know how to do this?
|
| My code a
|
| Private Sub UserForm_Activate()
| Application.OnTime Now + _
| TimeValue("00:00:05"), "KillTheForm"
| Dim namn As String
| Dim antal As String
| Dim arspremie As Currency
|
| namn = Application.UserName
| Label2 = namn
|
|
| antal = Sheets("Uppf??ljning").Range("S4")
| Label4 = antal & " st"
|
| arspremie = Sheets("Uppf??ljning").Range("L3")
| Label5 = arspremie
| Format (arspremie, "Currency")
|
| End Sub
|
|
|
| --
| Best regards
| Mia

On Wednesday, January 20, 2010 7:36 AM
Mia wrote:

Hi,Thank you for your help but it doesen't work.--Best regardsMia"Homey" skrev:
Hi,

Thank you for your help but it doesen't work.

--
Best regards
Mia


"Homey" skrev:


Submitted via EggHeadCafe - Software Developer Portal of Choice
More Fun with Fluent NHibernate Automapping
http://www.eggheadcafe.com/tutorials...uent-nhib.aspx
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Formatting

arspremie = Format(Sheets("Uppf??ljning").Range("L3"),"Currenc y")
Label5.Text = arspremie

Or instead of "Currency" use "$###,##0.00" wotj cirremcy sympbol of choice,
of course. Possibly Kr?


<Gokhan Erdem wrote in message ...
arspremie.value = Sheets("Uppf??ljning").Range("L3")
Label5.Caption = Format (arspremie, "? #,##0.00")

Cheers



Mia wrote:

Hi,Thank you for your help but it doesen't work.--Best regardsMia"Homey"
skrev:
20-Jan-10

Hi,

Thank you for your help but it doesen't work.

--
Best regards
Mia


"Homey" skrev:

Previous Posts In This Thread:

On Wednesday, January 20, 2010 5:21 AM
Mia wrote:

Userform with currency format
Hi,

I cant get the userform to show arspremie in the right format.
I want to show it in currency, do anyone know how to do this?

My code a

Private Sub UserForm_Activate()
Application.OnTime Now + _
TimeValue("00:00:05"), "KillTheForm"
Dim namn As String
Dim antal As String
Dim arspremie As Currency

namn = Application.UserName
Label2 = namn


antal = Sheets("Uppf??ljning").Range("S4")
Label4 = antal & " st"

arspremie = Sheets("Uppf??ljning").Range("L3")
Label5 = arspremie
Format (arspremie, "Currency")

End Sub



--
Best regards
Mia

On Wednesday, January 20, 2010 6:40 AM
Homey wrote:

Label5 = Format(arspremie, "Currency")you have to format variable before
you
Label5 = Format(arspremie, "Currency")

you have to format variable before you use it.

| Hi,
|
| I cant get the userform to show arspremie in the right format.
| I want to show it in currency, do anyone know how to do this?
|
| My code a
|
| Private Sub UserForm_Activate()
| Application.OnTime Now + _
| TimeValue("00:00:05"), "KillTheForm"
| Dim namn As String
| Dim antal As String
| Dim arspremie As Currency
|
| namn = Application.UserName
| Label2 = namn
|
|
| antal = Sheets("Uppf??ljning").Range("S4")
| Label4 = antal & " st"
|
| arspremie = Sheets("Uppf??ljning").Range("L3")
| Label5 = arspremie
| Format (arspremie, "Currency")
|
| End Sub
|
|
|
| --
| Best regards
| Mia

On Wednesday, January 20, 2010 7:36 AM
Mia wrote:

Hi,Thank you for your help but it doesen't work.--Best regardsMia"Homey"
skrev:
Hi,

Thank you for your help but it doesen't work.

--
Best regards
Mia


"Homey" skrev:


Submitted via EggHeadCafe - Software Developer Portal of Choice
More Fun with Fluent NHibernate Automapping
http://www.eggheadcafe.com/tutorials...uent-nhib.aspx





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Formatting

Should be:
Label5.Caption = arspremie



"JLGWhiz" wrote in message
...
arspremie = Format(Sheets("Uppf??ljning").Range("L3"),"Currenc y")
Label5.Text = arspremie

Or instead of "Currency" use "$###,##0.00" wotj cirremcy sympbol of
choice, of course. Possibly Kr?


<Gokhan Erdem wrote in message ...
arspremie.value = Sheets("Uppf??ljning").Range("L3")
Label5.Caption = Format (arspremie, "? #,##0.00")

Cheers



Mia wrote:

Hi,Thank you for your help but it doesen't work.--Best regardsMia"Homey"
skrev:
20-Jan-10

Hi,

Thank you for your help but it doesen't work.

--
Best regards
Mia


"Homey" skrev:

Previous Posts In This Thread:

On Wednesday, January 20, 2010 5:21 AM
Mia wrote:

Userform with currency format
Hi,

I cant get the userform to show arspremie in the right format.
I want to show it in currency, do anyone know how to do this?

My code a

Private Sub UserForm_Activate()
Application.OnTime Now + _
TimeValue("00:00:05"), "KillTheForm"
Dim namn As String
Dim antal As String
Dim arspremie As Currency

namn = Application.UserName
Label2 = namn


antal = Sheets("Uppf??ljning").Range("S4")
Label4 = antal & " st"

arspremie = Sheets("Uppf??ljning").Range("L3")
Label5 = arspremie
Format (arspremie, "Currency")

End Sub



--
Best regards
Mia

On Wednesday, January 20, 2010 6:40 AM
Homey wrote:

Label5 = Format(arspremie, "Currency")you have to format variable before
you
Label5 = Format(arspremie, "Currency")

you have to format variable before you use it.

| Hi,
|
| I cant get the userform to show arspremie in the right format.
| I want to show it in currency, do anyone know how to do this?
|
| My code a
|
| Private Sub UserForm_Activate()
| Application.OnTime Now + _
| TimeValue("00:00:05"), "KillTheForm"
| Dim namn As String
| Dim antal As String
| Dim arspremie As Currency
|
| namn = Application.UserName
| Label2 = namn
|
|
| antal = Sheets("Uppf??ljning").Range("S4")
| Label4 = antal & " st"
|
| arspremie = Sheets("Uppf??ljning").Range("L3")
| Label5 = arspremie
| Format (arspremie, "Currency")
|
| End Sub
|
|
|
| --
| Best regards
| Mia

On Wednesday, January 20, 2010 7:36 AM
Mia wrote:

Hi,Thank you for your help but it doesen't work.--Best regardsMia"Homey"
skrev:
Hi,

Thank you for your help but it doesen't work.

--
Best regards
Mia


"Homey" skrev:


Submitted via EggHeadCafe - Software Developer Portal of Choice
More Fun with Fluent NHibernate Automapping
http://www.eggheadcafe.com/tutorials...uent-nhib.aspx





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
Userform Text box Format to Currency Dave M[_2_] Excel Programming 2 March 20th 09 05:13 PM
TextBox on a userform - format to currency & percent Terry Excel Discussion (Misc queries) 2 September 12th 08 02:46 PM
UserForm TextBoxes - Is there a way to format as currency or perce Terry Excel Discussion (Misc queries) 0 September 11th 08 06:27 PM
Currency Format on UserForm when opened! Robo[_2_] Excel Discussion (Misc queries) 3 May 8th 07 02:42 PM
Currency Format for label in UserForm Allen Geddes Excel Programming 3 November 18th 05 06:30 PM


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