Looking for 2 VBA codes - Insert Index Number and sort by row

DownUnderFar

New Member
Joined
Jul 4, 2022
Messages
16
Office Version
  1. 365
Platform
  1. MacOS
Hi:

I need help with2 VBA codes please.

The first one to insert an index number in row 1from column B to the last.

The second one to sort the entire sheet, except column A by Row 2. If it's easier, columns B through ZZ and Rows 1 through 200 will work. Also, when I do the sort manually, I always get a prompt stating that some of my values are coded as text and it asks me if I should sort anything that looks like a number as a number. The answer is yes. I've attached a screenshot of that message.
 

Attachments

  • Screen Shot 2022-09-26 at 9.30.41 PM.png
    Screen Shot 2022-09-26 at 9.30.41 PM.png
    27.3 KB · Views: 7

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,215,300
Messages
6,124,138
Members
449,145
Latest member
Suresh215

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