Convert Number into Letter

jbunn

New Member
Joined
Feb 6, 2013
Messages
30
Hi There -

I am trying to take convert my variable LC1 into a letter. Please see code below. I need to replace the hardcoded "C" with the equilvalent letter of LC1. Thanks!

Dim LR1 As Long
Dim LC1 As Long

LR1 = Range("A:AO").Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LC1 = Range("A:AO").Find("*", SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column

Range("A2:C" & LR1).Select
Selection.Copy
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Instead of converting to a letter or selecting

Code:
Range(Cells(2, 1), Cells(LR1, LC1)).Copy
 
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

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