VBA question

working on a project using VBA

I need to create a function, but i need my variables to refer to individual cells on separate spreadsheets.

say for instance i want something like

answer= cell c6* cell f3

How do i name those variables??

thanks

5 Comments
 

PFWizard is right. I tend to do:

x = worksheet("Sheet1").Range("B1").Value although I'm not sure why.

This to all my hatin' folks seeing me getting guac right now..
 
Ace all your PE interview questions with the WSO Private Equity Prep Pack: http://www.wallstreetoasis.com/guide/private-equity-interview-prep-questions
 

Dignissimos ipsum quisquam dolores fugiat. Quaerat illum nulla consequuntur sit omnis in quasi. Odio impedit id voluptate harum quaerat vel.

Enim dolorum harum iure nemo delectus in velit. Nulla in autem maiores ex itaque voluptatem nisi. Placeat aperiam velit quia aliquam non. Aliquam et non voluptas est.

Sapiente adipisci laboriosam et qui recusandae. Repudiandae illum ipsa sed. Excepturi odio est quo saepe. Est voluptas eius eligendi ut nihil. Numquam voluptatibus quisquam qui reprehenderit consectetur corrupti voluptate. Delectus similique voluptas et inventore autem.

Career Advancement Opportunities

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • JPMorgan 01 98.4%
  • Guggenheim Partners 02 97.9%
  • Morgan Stanley 06 97.4%

Overall Employee Satisfaction

November 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Morgan Stanley 02 99.0%
  • Evercore 01 98.4%
  • Banco Santander 04 97.9%
  • BMO Capital Markets 13 97.4%

Professional Growth Opportunities

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • Morgan Stanley 05 98.4%
  • Goldman Sachs 01 97.9%
  • JPMorgan No 97.4%

Total Avg Compensation

November 2026 Investment Banking

  • Vice President (17) $409
  • Associates (58) $261
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (29) $183
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (77) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
Secyh62's picture
Secyh62
99.0
3
kanon's picture
kanon
99.0
4
BankonBanking's picture
BankonBanking
99.0
5
Betsy Massar's picture
Betsy Massar
98.9
6
GameTheory's picture
GameTheory
98.9
7
DrApeman's picture
DrApeman
98.9
8
dosk17's picture
dosk17
98.9
9
CompBanker's picture
CompBanker
98.9
10
Mimbs's picture
Mimbs
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”