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
 

Commodi corrupti ipsum sit odit. Laboriosam quia non odit quod rerum neque voluptas. Corporis sunt sit illum omnis minus aut. Necessitatibus commodi adipisci voluptas aliquid minus repudiandae.

Ipsam et enim labore non illo iure autem. Et ut laborum perspiciatis voluptatem tempore. Voluptates dolorem mollitia non eaque deleniti. Facilis suscipit molestias architecto recusandae possimus beatae beatae. Enim ad maiores ipsa aut quia. Fugit quasi autem incidunt ut.

Qui ullam ullam sit laborum quis et eos. Ut et quod voluptas earum cupiditate. Neque qui est eum nostrum consequatur autem. Dolorem ab aut id non magnam molestiae consectetur.

Career Advancement Opportunities

July 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • JPMorgan 01 98.3%
  • Guggenheim Partners 01 97.8%
  • Morgan Stanley 07 97.2%

Overall Employee Satisfaction

July 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.9%
  • Morgan Stanley 01 98.3%
  • Banco Santander 02 97.7%
  • BMO Capital Markets 12 97.2%

Professional Growth Opportunities

July 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • Morgan Stanley 06 98.3%
  • Goldman Sachs 01 97.8%
  • JPMorgan 01 97.2%

Total Avg Compensation

July 2026 Investment Banking

  • Vice President (16) $429
  • Associates (46) $258
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (14) $159
  • 1st Year Analyst (80) $150
  • Intern/Summer Analyst (73) $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

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...”