Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default macro to run go to

i have recorded a macro to select cells in a column that contain values from
formulas using "go to", when i recorded the macro this worked fine and all
the cells in the selected column with numbers in them were selected. however
when i run the macro it selects cells from the column to the left of it as
well?

is there a way of adjusting the code to stop this?


regards

patrick

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default macro to run go to

Post the code


"Patrick Bateman" wrote:

i have recorded a macro to select cells in a column that contain values from
formulas using "go to", when i recorded the macro this worked fine and all
the cells in the selected column with numbers in them were selected. however
when i run the macro it selects cells from the column to the left of it as
well?

is there a way of adjusting the code to stop this?


regards

patrick

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default macro to run go to

Columns("F:F").Select
Range("F11").Activate
Selection.SpecialCells(xlCellTypeFormulas, 1).Select

"Mike H" wrote:

Post the code


"Patrick Bateman" wrote:

i have recorded a macro to select cells in a column that contain values from
formulas using "go to", when i recorded the macro this worked fine and all
the cells in the selected column with numbers in them were selected. however
when i run the macro it selects cells from the column to the left of it as
well?

is there a way of adjusting the code to stop this?


regards

patrick

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default macro to run go to

Do you have merged cells in column F that include cells from column E?

Merged cells can cause lots of pain.

Patrick Bateman wrote:

Columns("F:F").Select
Range("F11").Activate
Selection.SpecialCells(xlCellTypeFormulas, 1).Select

"Mike H" wrote:

Post the code


"Patrick Bateman" wrote:

i have recorded a macro to select cells in a column that contain values from
formulas using "go to", when i recorded the macro this worked fine and all
the cells in the selected column with numbers in them were selected. however
when i run the macro it selects cells from the column to the left of it as
well?

is there a way of adjusting the code to stop this?


regards

patrick


--

Dave Peterson
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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor [email protected] Excel Programming 2 March 30th 07 07:48 PM
how to count/sum by function/macro to get the number of record to do copy/paste in macro tango Excel Programming 1 October 15th 04 01:16 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 02:28 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"