Nice and easy - convert text to its numerical equivalent

  • Thread starter Thread starter Pete Rooney
  • Start date Start date
P

Pete Rooney

Good morning - scanning two worksheets and pasting information via VBA from
one worksheet to another. I copy it from the first worksheet to a variable
thus:

Store_PreAppSpend = Format(WorkOrderToCheckListCell.Offset(0, 31).Formula,
"£#,##0")

I then paste it into the second worksheet like this:

Selection.Offset(0, 7).Formula = Store_PreAppSpend

but it comes in as a label and I want it as a value.

I know I should be able to do this with the worksheet function VALUE, but I
can't remember the syntax I should use.

As usual, thanks in advance.

Regards

Pete
 
Some functions in VBA are not the same as the worksheet. Value is one of them.

Try VAL()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top