Copying data from infopath

hallingh

Well-known Member
Joined
Sep 11, 2010
Messages
769
Hi all. I have a workbook which transforms data input from an infopath survey and performs various calculations on it. The user needs to complete the infopath form, export the data to Excel, copy that data to the main sheet in my workbook, then click a button to run the transformations / calculations.

The workbook works perfectly when the data is entered correctly, but I'm having an issue with the copying of the data from the Excel sheet that is output from infopath into the actual workbook. For some reason, some of the columns' data are imported as numbers stored as text instead of just a normal number...

When this happens, many of the calculations I am doing don't work correctly because the numbers are stored as text.

Is there any way to fix this issue automatically with a special form of paste (paste values is greyed out) or with vba? When I record a macro and select the "Convert to Number" option, nothing shows up in my macro code aside from selecting the cell.

If anyone can help me with this error I would greatly appreciate it.

Thanks!

Hank
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top