Remove Quotes around Power Pivot data - drops leading zero

Graham T

New Member
Joined
Jul 19, 2007
Messages
13
Hi,

I've been asked to look at something for a college, who is attemting to run a macro to format some data that derives from Power Pivot.

[TABLE="width: 183"]
<TBODY>[TR]
[TD]"05014297"</SPAN>
[/TD]
[TD="align: right"]5014297</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]


In the first column, which comes from Power Pivot there are quotation marks around the data. If I remove this (just via find and replace) this will drop the leading zero from the data.

Is there a simple way around this that they can add to the macro to perform this action?

Thanks,

GT
 
You need to format the cell as text before you remove the quotes or if you want it to show the leading 0 then the numberformat needs to be set to 00000000
 
Upvote 0

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