Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Cannot autosum after import

Hi guys

I'm importing numbers from a custom application into excel, after the import
I cannot autosum, but if i manually remove the number and re-type it works
fine.

Any ideas?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default Cannot autosum after import


DavidB wrote:
Hi guys

I'm importing numbers from a custom application into excel, after the import
I cannot autosum, but if i manually remove the number and re-type it works
fine.

Any ideas?


What do you have the cell formatted as?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Cannot autosum after import


What do you have the cell formatted as?


Currency


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default Cannot autosum after import


DavidB wrote:
What do you have the cell formatted as?


Currency


Have you tried fromatting the cells after import then summing?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Cannot autosum after import

generally formatting a cell that already contains a value will not change the
way the value is stored.

--
Regards,
Tom Ogilvy


"stevebriz" wrote:


DavidB wrote:
What do you have the cell formatted as?


Currency


Have you tried fromatting the cells after import then summing?




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Cannot autosum after import

Regardless, it sounds like you values are stored as Text instead of as
numbers.

Select a blank cell, then do Edit=copy

then select the offending cells and do Edit=Paste Special, select Values
and ADD.

This should convert them back to being stored as numbers.

--
Regards,
Tom Ogilvy


"DavidB" wrote:


What do you have the cell formatted as?


Currency



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Cannot autosum after import




Currency


Sorry, When I generate the excel sheet from the custom app the cell is
formatted general


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default Cannot autosum after import


DavidB wrote:

Currency


Sorry, When I generate the excel sheet from the custom app the cell is
formatted general


try: create a macro like below and then sum
(substitute your range)

Sub Macro8()
Range("D1:D34").Select
Selection.NumberFormat = "$#,##0.00"
End Sub

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Cannot autosum after import

This should do nothing. Why not back off on the untested advice.

Format some cells as text, put numbers in them

See that autosum doesn't work.

try your solution and see that it still doesn't work.

I tested it and it doesn't work.

If you add the code equivalent of what I suggested such as:

Sub Macro8()
Range("D1:D34").Select
Selection.NumberFormat = "$#,##0.00"
Range("D1:D34").Value = Range("D1:D34").Value
End Sub

then it does work.

--
Regards,
Tom Ogilvy


"stevebriz" wrote:


DavidB wrote:

Currency


Sorry, When I generate the excel sheet from the custom app the cell is
formatted general


try: create a macro like below and then sum
(substitute your range)

Sub Macro8()
Range("D1:D34").Select
Selection.NumberFormat = "$#,##0.00"
End Sub


  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Cannot autosum after import


DavidB wrote:
Hi guys

I'm importing numbers from a custom application into excel, after the import
I cannot autosum, but if i manually remove the number and re-type it works
fine.

Any ideas?


I have a similar problem when i import from access. i use this code as
a workaround.

'workaround code to get rid of the apostrphe's that are appended from
access export
Dim C As Excel.Range

ActiveSheet.Range("A1:G" &
XLapp.WorksheetFunction.CountA(ActiveSheet.Range(" A:A"))).Select 'this
line and above line should be together. they wrap when posted.

For Each C In XLapp.Selection.Cells
C.Formula = C.Formula
Next

try this and lemme know if it works

AR



  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Cannot autosum after import


See answer in the other group you posted to.


Gord

On Wed, 19 Jul 2006 15:37:59 +0100, "DavidB" wrote:

Hi guys

I'm importing numbers from a custom application into excel, after the import
I cannot autosum, but if i manually remove the number and re-type it works
fine.

Any ideas?


Gord Dibben MS Excel MVP
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
How 2 sort an autosum total list after adding items 2 autosum item akm Excel Discussion (Misc queries) 0 May 30th 10 11:44 PM
autosum Kevin Excel Worksheet Functions 6 November 25th 06 06:51 PM
Cannot autosum after import DavidB Excel Worksheet Functions 3 July 19th 06 04:39 PM
How do I use the AutoSum? Tom Cote Excel Programming 3 June 21st 05 10:50 PM
Autosum box too big [email protected] Excel Worksheet Functions 1 February 9th 05 01:31 AM


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