Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default How can I ...

Hi,

I'm working with VB.

How can I do the following with VB commands:

1. Declare K (variable) as a regular number
2. Declare K as percentage variable
3. (Variable) K = Current Cell
4. Current Cell = (Variable) K

Thank you,

Haim.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default How can I ...

Haim,

Try ...
1. Dim K as Double '(Double-precision floating point)
2. As above. Calculate your percentages as decimals and format the output
cell in your spreadsheet as percentage
3. K = activecell.value
4. activecell.value = K

I hope that this helps

"Haim" wrote:

Hi,

I'm working with VB.

How can I do the following with VB commands:

1. Declare K (variable) as a regular number
2. Declare K as percentage variable
3. (Variable) K = Current Cell
4. Current Cell = (Variable) K

Thank you,

Haim.




  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default How can I ...


Thank you, dowensan.

This help me a lot.

Thanks,

Haim.

-----Original Message-----
Haim,

Try ...
1. Dim K as Double '(Double-precision floating

point)
2. As above. Calculate your percentages as decimals and

format the output
cell in your spreadsheet as percentage
3. K = activecell.value
4. activecell.value = K

I hope that this helps

"Haim" wrote:

Hi,

I'm working with VB.

How can I do the following with VB commands:

1. Declare K (variable) as a regular number
2. Declare K as percentage variable
3. (Variable) K = Current Cell
4. Current Cell = (Variable) K

Thank you,

Haim.




.

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 05:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"