Right(Application.Caller,1) run-time error

PecJam

New Member
Joined
May 5, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, I am trying to get results from one sheet into another with shapes. There are 10 shapes that each corresponds with 10 “categories” in another sheet. I have named everything with corresponding numbers but it seems that you can only use Application.caller with 1 digit, 1,2,3,4,5,6,7,8 and 9 but when calling for “category10” it is only calling for the 0 at the end. Is there a way to call for the second digit as well? Any help would be great! Thank you!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi and welcome to MrExcel

Use:

VBA Code:
Mid(Application.Caller, 9)

If you still have problems, come back here with more details of what you have, what you want to do and what you need as a result.

----- --
Cordially
Dante Amor
----- --
 
Upvote 0
That worked perfectly, thank you! So if I am guessing correctly, I will now be able to have 999,999,999 “Categories “ instead of 9?
 
Upvote 1

Forum statistics

Threads
1,215,727
Messages
6,126,515
Members
449,316
Latest member
sravya

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