Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default macro on different reports CTRL+F in formula

it looks really easy but I am thinking since more than 24 hours.
I need to merge two values of two different cells with a space, it
looks easy
=B23&" "&B24 but in reality every report is different and I am trying
to register a macro.
so if I write B23, B24 as in the example the next sheet could have
the the two values everywhere. So registering the marco use CTRL F to
find the value I need then register then i press CTRL arrow right to
read the value on the cell on the right, it works as a charm with one
value because the macro find the string i need and then goes to the
right to take the value I need but now I have to merge as in the
example above( =B23&" "&B24) or worse (sheet1!B23& etc) if refers to
another sheet. I am trying to find a formula to combine offset search
find index, I tried to built a VBA function, but does not work
when I have a formula excel recognize a specific cell not the one to
the right of the string I look with ctrl f
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default macro on different reports CTRL+F in formula

Hello,

Once your macro identifies the first cell (as you say that it can), this line will merge the contents of that cell with the cell one column to the right of it:

MsgBox ActiveCell.Value & " " & ActiveCell.Offset(0, 1).Value

Just change the "MsgBox" part to whatever you need (i.e. a Range value, a variable, etc.)

Ben
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default macro on different reports CTRL+F in formula

Cool thank you
On 24 okt, 14:11, Ben McClave wrote:
Hello,

Once your macro identifies the first cell (as you say that it can), this line will merge the contents of that cell with the cell one column to the right of it:

MsgBox ActiveCell.Value & " " & ActiveCell.Offset(0, 1).Value

Just change the "MsgBox" part to whatever you need (i.e. a Range value, a variable, etc.)

Ben


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a difference between CTRL+D and CTRL+" (quotation marks) AKMMS Excel Discussion (Misc queries) 2 March 22nd 10 07:43 PM
Excel 2007: Ctrl+PgUp or Ctrl+PgDn with Protected Sheets DrDave Excel Discussion (Misc queries) 1 July 28th 08 04:12 AM
use CTRL key inside a macro IE CTRL + ; Date Less Excel Worksheet Functions 1 April 14th 08 11:58 PM
Generate Reports from Excel Using Seagate Crystal Reports PLs... H Chinx21 Excel Programming 0 May 5th 07 02:23 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 05:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"