Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Oscar Montgomery   on Feb 01 In MS Office Category.

  
Question Answered By: Seth Anderson   on Feb 01

The error  message I get is "Variable required - can't assign to this
expression".

I.e. a variable  is not "not acceptable", a variable is required.

What version of Excel are you using? (I'm using 2003.)

What your statement  is trying to do is to replace  3 characters  in the
result of Range("E2"). Or more specifically Range("E2").Value. This is
a local value which is created to contain the value of the cell - it's
not the cell itself.

To do what you want to do, I imagine you will need to create a local
variable, put the contents of the cell into it, change the local
variable's contents with Mid, then put them back into the cell.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Mid statement Or get search suggestion and latest updates.


Tagged: