Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
adam777
 
Posts: n/a
Default Using 'GoTo' in a Macro


First of all I apologise if this is a basic question, I have been
searching the boards but dont see anything specific to my needs.

In a nutshell I have a series of macros that are pulling data from
other worksheets and preparing a finished report.

After one column of data is presented I am using MATCH to find a
specific row, then I use that data to calculate the next cell in the
same column where my next data needs to be displayed.

However, I am then taking that cell reference (eg B27) and using the
goto feature to move to the relevent cell and copy the next data into
the spreadsheet.

My problem is this, that cell reference (B27) will change every time
this report is run for different customers, however the goto command
isnt taking the contents of the clipboard when the macro runs, instead
it takes the absolute reference I used when I recorded the macro.

So I am looking for a method to use a cell reference in either a cell
on the spreadheet or in the clipboard with the goto feature.

I hope that isnt too confusing.


--
adam777
------------------------------------------------------------------------
adam777's Profile: http://www.excelforum.com/member.php...o&userid=24764
View this thread: http://www.excelforum.com/showthread...hreadid=383319

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
Goto a dynamic cell address within a macro blkane Excel Discussion (Misc queries) 3 June 8th 05 07:08 PM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM


All times are GMT +1. The time now is 09:06 AM.

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

About Us

"It's about Microsoft Excel"