Displaying Code On A Thread

AidanDanby

Board Regular
Joined
Jan 24, 2013
Messages
176
Office Version
  1. 365
Hi Everyone,

How do I display code within a thread? I need some help with a bit of code that sorts data in sheets in a spreadsheet

Thanks,

Aidan
 
Enclose it in code tags - see my signature below. :)
 
Thankyou Rory,

Could you possibly help me on an issue from a thread I started on 15th May 'Vlookup Question' #15

The code I need adapting as described is:

Code:
 With ActiveWorkbook.ActiveSheet
  .Range("A2:S957").Sort key1:=.Range("Q2"), order1:=1, key2:=.Range("R2"), order2:=1
  .Range("A2").Select

The code is run using CTRL + SHIFT + Y and only sorts the sheet that is active at the time in the workbook (there is a sheet for each day of the month)

Thankyou,

Aidan
 
Last edited:
I added a reply to the original thread. (it doesn't really belong in this one)
 

Forum statistics

Threads
1,221,543
Messages
6,160,422
Members
451,644
Latest member
hglymph

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