Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: VBA Vlookup Variable Sheet Reference

Started 1 month ago by dsgsandman
Hi All, I'm trying to set up a vlookup function to reference a varying sheet Name. Basically, there are two sheets that go together a summary and a review sheet. The sheets are all named "xxxxx Summary" and "xxxxx Review" This Macro will be run on the review sheet, but I need to look up information off the summary sheet. So I was thinking the following to get the sheet name, which works ...
Site: MrExcel Message Board  MrExcel Message Board - site profile
Forum: Excel Questions  Excel Questions - forum profile
Total authors: 2 authors
Total thread posts: 2 posts
Thread activity: no new posts during last week
Domain info for: mrexcel.com

Other posts in this thread:

wigi replied 1 month ago
Hello You forgot the ' in the formula: Code: "=Vlookup(A3,'" & CustomerSummary & "'!$A$3:$B$65536,2,0)" (after the first comma and in front of the double quote ". I also had to add a space in front of "Summary" in: Code: CustomerSummary = Left(ActiveSheet.Name, Len(ActiveSheet.Name) - 7) & "Summary" By the way, do you really need such long ranges in your lookup?...

 

Top contributing authors

Name
Posts
dsgsandman
2
user's latest post:
VBA Vlookup Variable Sheet...
Published (2009-11-15 10:28:00)
Hi All, I'm trying to set up a vlookup function to reference a varying sheet Name. Basically, there are two sheets that go together a summary and a review sheet. The sheets are all named "xxxxx Summary" and "xxxxx Review" This Macro will be run on the review sheet, but I need to look up information off the summary sheet. So I was thinking the following to get the sheet name, which works fine. CustomerSummary =...
wigi
2
user's latest post:
VBA Vlookup Variable Sheet...
Published (2009-11-15 11:19:00)
Hello You forgot the ' in the formula: Code: "=Vlookup(A3,'" & CustomerSummary & "'!$A$3:$B$65536,2,0)" (after the first comma and in front of the double quote ". I also had to add a space in front of "Summary" in: Code: CustomerSummary = Left(ActiveSheet.Name, Len(ActiveSheet.Name) - 7) & "Summary" By the way, do you really need such long ranges in your...

Related threads on "MrExcel Message Board":

Related threads on other sites:

Thread profile page for "VBA Vlookup Variable Sheet Reference" on http://www.mrexcel.com. This report page is a snippet summary view from a single thread "VBA Vlookup Variable Sheet Reference", located on the Message Board at http://www.mrexcel.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity