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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,675
Messages
6,126,153
Members
449,294
Latest member
Jitesh_Sharma

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