excel


Excel - Is it possible to make the OFFSET function skip hidden cells


I have a very simple OFFSET Function that i connect to a scroll bar to scroll through data. =OFFSET(A$2,$A$48,0). When I filter the data in cells A2-A45 to select only a certain category, i'd like the scrolling of the OFFSET function to skip the hidden cells and only scroll through the data that is still visible after filtering.
Sub AddVisibleName()
Dim rVisible As Range
Dim lLastRow As Long
lLastRow = Range("A" & Rows.Count).End(xlUp).Row
Set rVisible = Range("A2:A45" & lLastRow).SpecialCells(xlCellTypeVisible)
ActiveWorkbook.Names.Add Name:="VisibleRange", RefersTo:=rVisible
End Sub
The code above creates the range "VisibleRange" that only has the values of the non hidden cells shown in it. Is there a way to incorporate this into the OFFSET function?
Any other simpler methods of achieving what i'd like are also welcomed
Thanks

Related Links

Calculate a Subtotal of a Sumproduct
Sub a number with column numbers and show the results in a row
Vlookup in VBA to work on Numbers in different format
Highlight rows if value in column A is x
Deleting entire row based on cell value
VBA listing all Files in subfolder using CMD, and sorting with manually input data
Automated updating of links_Folder/File Names_Excel
Replace text in a cell containing a string with another string
Excel - Issue with using only ints to get range
VBA crashes Excel
Excel Macro to validate CSV field format
Fill Each Cell With Formula
VBA- Copy columns from one source worksheet to end of multiple sheets
Check multiple cells and message box if data missing
excel create extra sheet
Allow Users to edit ranges in excel sheet in VBA

Categories

HOME
menu
reverse-geocoding
local-storage
accounting
owasp
linux-device-driver
caffe
javafx-2
animate.css
instagram-api
cordova-plugins
pstricks
terraform
spf
url-rewriting
worksheet-function
mupdf
ietf-netmod-yang
biopython
smt
border
spring-boot-actuator
android-constraintlayout
flip-flop
boost-python
silex
powerpoint-vba
actionlink
akka-stream
interceptor
android-appbarlayout
chinese-locale
graphic
nexmo
x509
asp.net-mvc-routing
pam
layer
transfer-function
hashcode
asn.1
xfs
actor
oracle-sql-data-modeler
ssas-tabular
paypal-adaptive-payments
google-truth
qnx
winlims
mosync
rt
bandwidth
spectral-density
google-chrome-arc
cpio
nslog
htsql
countdowntimer
spock-reports
display-bugs
nsolid
typing
lunrjs
nibble
struts2-jquery-grid
octopress
opcode
cirqus
argo
tess-two
ssas-2008
spatialite
gcdasyncsocket
cpanm
amdatu
savefiledialog
childviewcontroller
cloudcontrol
vtune
mysql-error-1093
workbench
mux
xcode-instruments
duplicate-removal
pixate
form-helpers
objectarx
opendocument
stockquotes
countries
craftyjs
amber-smalltalk
.class-file
django-sessions
grit
glossary
kiln
fql.multiquery
wss-3.0
application-design
html-rendering
open-basedir
isaserver
table-driven
astoria

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile