Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Still having issues with adding a period to a ActiveCell.Value

Gary,

Your code allowed me to insert the "." (PERIOD) but as soon as I tried
to add another character into the cell it always kept the "." (PERIOD)
at the end versus keeping it in its original placement location. Any
ideas? I'm pulling my hair out on this one... Please keep in mind this
is a spreadsheet inside of a VBA User Form so its a bit diffrent then
it being a normal spreadsheet. Any help is much appreciated...I am
woundering if maybe someone could help with a code to make the "." be
instered as text instead of a trigger for 0.00 number format?

==== ORIGINAL MESSAGE ====

From: - view profile
Date: Fri, Jan 5 2007 11:41 am
Email:
Groups: microsoft.public.excel.programming
Not yet ratedRating:
show options
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse | Find messages by this author


Hey,

CALC.ActiveCell.Formula = CALC.ActiveCell.Value & "."


This code above does not allow me to properly insert a "." (PERIOD)
after the ActiveCell.Value. The code works fine when there is nothing
in cell and when its not strictly a number. The following formats work
correctly...


ABC123.01
--123.01
"His tempature was 95.6"
etc...


But when the cell contains strickly numbers like 123 it doesn't want to

insert it. Something to keep in mind is the fact that CALC is a
userform with a spreadsheet plug-in feild (a spreadsheet within in a
user form). All I want is for the ActiveCell.Value to stay put and have

a "." (PERIOD) after the ActiveCell.Value. Any ideas? I been trying all

sorts of things but Excel doesn't seem to want to cooperate. Any help
is much appreciated!!


Reply »


From: Gary''s Student - view profile
Date: Fri, Jan 5 2007 11:51 am
Email: Gary''s Student
Groups: microsoft.public.excel.programming
Not yet ratedRating:
show options
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse | Find messages by this author


CALC.ActiveCell.Value = CALC.ActiveCell.Value & "."
--
Gary's Student


- Hide quoted text -
- Show quoted text -

From: Alok - view profile
Date: Fri, Jan 5 2007 11:56 am
Email: Alok
Groups: microsoft.public.excel.programming
Not yet ratedRating:
show options
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse | Find messages by this author


What excel displays depends on the numeric format. You can type in
10.2222
but if numeric format is set to display only one decimal place it will
display 10.2
If you want a number to display as 10. then change the cell formatting
to
"##."


- Hide quoted text -
- Show quoted text -

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
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
Adding time over a 24 hour period Paige Excel Discussion (Misc queries) 2 July 12th 06 06:34 PM
Adding a period to the "=LEFT()" function. Stilla Excel Worksheet Functions 8 February 8th 06 09:46 PM
ActiveCell issues rnrss Excel Programming 0 October 5th 05 11:39 AM
Period to Period percentage change? cs120 Excel Discussion (Misc queries) 1 September 18th 05 12:05 PM


All times are GMT +1. The time now is 01:27 AM.

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"