Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-18-2016, 09:14 AM
mcronin mcronin is offline Simple Hide columns macro, when I execute it hides everything left of selection, please help Windows 7 64bit Simple Hide columns macro, when I execute it hides everything left of selection, please help Office 2016
Novice
Simple Hide columns macro, when I execute it hides everything left of selection, please help
 
Join Date: May 2016
Posts: 4
mcronin is on a distinguished road
Default Simple Hide columns macro, when I execute it hides everything left of selection, please help

Hi,



I am creating the simplest macro in the world just to hide specific columns, I used macro recorder for speed and when that didn't work I went to the code to make sure it was ok and it looks fine, see below, I can't understand why it continually hides columns A:C when that is clearly not in the code. I also tried doing the hide code for individual column and that didn't work either. Please help and thanks in advance.

Columns("D:K").Select
Selection.EntireColumn.Hidden = True
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Code to Hide columns based on selection on prior sheet Silver1379 Excel Programming 0 04-15-2015 08:40 AM
Hide/Unhide Text Based on Drop Down Selection gw1500se Word 3 02-19-2015 12:17 PM
Simple Hide columns macro, when I execute it hides everything left of selection, please help Show/Hide Text based on Checkbox Selection tammytran105 Word VBA 7 10-02-2014 04:30 PM
Simple Hide columns macro, when I execute it hides everything left of selection, please help Hide/Unhide a Block of Text Based on Choice Selection inquirer Word VBA 7 09-22-2014 04:41 PM
Simple Hide columns macro, when I execute it hides everything left of selection, please help How do I call/execute an Excel macro from Access 2003 KramerJ Excel 2 05-11-2009 11:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft