Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2015, 02:54 AM
macropod's Avatar
macropod macropod is online now How to refer to a variable with BLANKs Windows 7 64bit How to refer to a variable with BLANKs Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The code I posted can be used just as easily to activate a sheet - just change:
MsgBox Sheets(v_Sheetname).Range("A1").Value
to:
Sheets(v_Sheetname).Range("A1").Activate

As I said, the issue may well be with what your code returns as the date.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 11-05-2015, 03:09 AM
Officer_Bierschnitt Officer_Bierschnitt is offline How to refer to a variable with BLANKs Windows 7 64bit How to refer to a variable with BLANKs Office 2013
Advanced Beginner
How to refer to a variable with BLANKs
 
Join Date: Oct 2015
Posts: 87
Officer_Bierschnitt is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
As I said, the issue may well be with what your code returns as the date.
That may well be - and how could I change that?
(if that is the case, your code would not work any better in my instance as it also uses that variable, no?)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to refer to a variable with BLANKs Counting Blanks in 1 Column and Non-Blanks in Another dogwood705 Excel 4 02-07-2015 08:45 AM
Run Time Error '91': Object variable or With block variable not set using Catalogue Mailmerge Berryblue Mail Merge 1 11-13-2014 05:36 PM
How to refer to a variable with BLANKs Run-time error 91 object variable or with block variable not set JUST ME Word VBA 4 03-25-2014 06:56 AM
How to refer to a variable with BLANKs object variable or with block variable not set MJP143 Excel 1 02-11-2013 05:07 AM
How to refer to a variable with BLANKs Run-time error '91': Object variable or With block variable not set tinfanide Excel Programming 2 06-10-2012 10:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:10 AM.


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