Moving to a sheet referenced in a cell

brianfosterblack

Active Member
Joined
Nov 1, 2011
Messages
251
I have sheet named "Master". I then have a number of sheets named according to my Customer number 1001,1002,1003 etc.
I am entering information on the Master sheet which includes the client number in cell B2 on the Master sheet but in number format.
When I run a macro (still to be written) I want to copy what I have entered on the Master sheet in cell C2 to the next empty row on the Client sheet which is referenced in Cell B1 on the Master sheet. I can do the rest of the coding but do not know how to move to the sheet name entered in cell B2 in number format
Can someone please assist
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
How about
VBA Code:
Dim wsName As String
wsName = Sheets("Master").Range("B2").Value
Sheets(wsName).Select
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,743
Messages
6,126,605
Members
449,321
Latest member
syzer

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