Add to a cell's value

dpaton05

Well-known Member
Joined
Aug 14, 2018
Messages
2,033
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have a row that is identified by a procedure and I want to add some text to the beginning of the first cell in the row from the left. What is the vba I could do this with?
 

Some videos you may like

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
11,970
Office Version
  1. 365
Platform
  1. Windows
Assuming that your procedure identifies the row of interest as a range object, try something like below, where rng refers to your range object

VBA Code:
rng(1).Value = "new  text " & rng(1).Value
 

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
6,067
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Please use XL2BB and provide a sample of what you have and a mocked up solution so that we can better understand your issue.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,089
Messages
5,599,667
Members
414,326
Latest member
Aerith

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
Top