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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Watch MrExcel Video

Forum statistics

Threads
1,130,046
Messages
5,639,757
Members
417,108
Latest member
Thein Than

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
Top