excel - Using .range property on string that includes sheet name -


I have a string inside a cell in the workbook that I am using to define the address of a category That should be a lookup

For example, let's assume that the string is called the lookupnange and its value is:

  'Rate Sheet'! Y111: AA 126  

My problem is that in my code, when I set the range I want to use:

 set  YRange = ThisWorkbook.Worksheets ("Rate sheet"). There is no way to use Range (Lookuprange)  

.work () property without using property () property?

For example, perhaps one way to do this:

Set yRange = ThisWorkbook.Range (LookupRange)

Otherwise, I think I might have to type some code to remove the sheet from the sheet range?

Assume lookuprange is a string, you can remove the sheet and < Range E> and InStr () :

  sub-test () by using the code> Middle ()  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -