Referencing a cell using a cell from a different sheet

kwaring

New Member
Joined
Mar 14, 2002
Messages
49
The cells I am trying to reference are in a sheet called interface. In this example, i am trying to use values in cells E37 and E39 to reference Ax and Hy where x and y are the respective values of cells E37 and E39 in sheet "Interface"... Why doesn't this work or how can i make it work?

Range("A" & [Interface!$E$37] & ":" & "H" & [Interface!$E$39]).Select

Thanks!
 
'Copies format down
Sheets("Data").Select
Range("A" & Sheet1.[E37] & ":" & "H" & Sheet1.[E39]).Select
Selection.AutoFill Destination:=Range("A" & Sheet1.[E37] & ":" & "H" & Sheet1.[E40]), Type:=xlFillDefault
Range("A" & Sheet1.[E37] & ":" & "H" & Sheet1.[E40]).Select
ActiveWindow.SmallScroll Down:=-9
'Pastes information
Range("I" & Sheet1.[E37]).Select
ActiveSheet.Paste
'Resets to Interface Sheet
Sheets("Interface").Select
Trying to copy down the formatting (like dragging the bottom right hand corner of a selection down the sheet) and then paste a value into it
 
Upvote 0

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
Well, here is your code, revised and error free when I tested it.

This looks like only part of your entire code, but nevertheless, this portion had no errors.
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,978
Members
448,934
Latest member
audette89

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