How to reference the value in a cell (text value) ?

Vexorg

Board Regular
Joined
Oct 5, 2010
Messages
116
Hi,

I have a dynamic cell G5 (on Sheet1). The value in the cell changes when I selected different items in a list box.

How do I reference the cells value in the below (marked in Red):

Rows("1:1").Select
Range("AZ1").Activate
Selection.AutoFilter
Sheets("3rd Party and Phones").Range("$A$1:$BK$19814").AutoFilter Field:=55, Criteria1:= _
"I need the value here from G5 Sheet1"
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Like this?

Rich (BB code):
Sheets("3rd Party and Phones").Range("$A$1:$BK$19814").AutoFilter Field:=55, Criteria1:=Sheets("Sheet1").Range("G5").Value
 
Upvote 0
Like this?

Rich (BB code):
Sheets("3rd Party and Phones").Range("$A$1:$BK$19814").AutoFilter Field:=55, Criteria1:=Sheets("Sheet1").Range("G5").Value

Thanks guys. Thank you thats exactly what i needed. I tried that before but i forgot to add .Value !
 
Upvote 0

Forum statistics

Threads
1,224,589
Messages
6,179,744
Members
452,940
Latest member
rootytrip

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